2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts ===
|
|
|
|
module Bugs {
|
|
|
|
>Bugs : typeof Bugs
|
|
|
|
|
|
|
|
export interface IToken {
|
|
|
|
>IToken : IToken
|
|
|
|
|
|
|
|
startIndex:number;
|
|
|
|
>startIndex : number
|
|
|
|
|
|
|
|
type:string;
|
|
|
|
>type : string
|
|
|
|
|
|
|
|
bracket:number;
|
|
|
|
>bracket : number
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IState {
|
|
|
|
>IState : IState
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IStateToken extends IToken {
|
|
|
|
>IStateToken : IStateToken
|
|
|
|
>IToken : IToken
|
|
|
|
|
|
|
|
state: IState;
|
|
|
|
>state : IState
|
|
|
|
>IState : IState
|
|
|
|
|
|
|
|
length: number;
|
|
|
|
>length : number
|
|
|
|
}
|
|
|
|
|
|
|
|
function bug3() {
|
|
|
|
>bug3 : () => void
|
|
|
|
|
|
|
|
var tokens:IToken[]= [];
|
|
|
|
>tokens : IToken[]
|
|
|
|
>IToken : IToken
|
2014-10-13 15:56:58 +02:00
|
|
|
>[] : undefined[]
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
tokens.push({ startIndex: 1, type: '', bracket: 3 });
|
|
|
|
>tokens.push({ startIndex: 1, type: '', bracket: 3 }) : number
|
|
|
|
>tokens.push : (...items: IToken[]) => number
|
|
|
|
>tokens : IToken[]
|
|
|
|
>push : (...items: IToken[]) => number
|
|
|
|
>{ startIndex: 1, type: '', bracket: 3 } : { startIndex: number; type: string; bracket: number; }
|
|
|
|
>startIndex : number
|
|
|
|
>type : string
|
|
|
|
>bracket : number
|
|
|
|
|
|
|
|
tokens.push(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }));
|
|
|
|
>tokens.push(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 })) : number
|
|
|
|
>tokens.push : (...items: IToken[]) => number
|
|
|
|
>tokens : IToken[]
|
|
|
|
>push : (...items: IToken[]) => number
|
|
|
|
><IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }) : IToken
|
|
|
|
>IToken : IToken
|
|
|
|
>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }) : { startIndex: number; type: string; bracket: number; state: null; length: number; }
|
|
|
|
>{ startIndex: 1, type: '', bracket: 3, state: null, length: 10 } : { startIndex: number; type: string; bracket: number; state: null; length: number; }
|
|
|
|
>startIndex : number
|
|
|
|
>type : string
|
|
|
|
>bracket : number
|
2014-09-10 21:58:30 +02:00
|
|
|
>state : null
|
2014-08-15 23:33:16 +02:00
|
|
|
>length : number
|
|
|
|
}
|
|
|
|
}
|