2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/objectLitArrayDeclNoNew.ts(27,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
|
|
|
2014-11-29 23:51:25 +01:00
|
|
|
==== tests/cases/compiler/objectLitArrayDeclNoNew.ts (1 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var console;
|
|
|
|
"use strict";
|
|
|
|
module Test {
|
|
|
|
export interface IState {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IToken {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILineTokens {
|
|
|
|
tokens: IToken[];
|
|
|
|
endState: IState;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Gar {
|
|
|
|
public moo: number = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function bug(): ILineTokens {
|
|
|
|
var state:IState= null;
|
|
|
|
return {
|
|
|
|
tokens: Gar[],//IToken[], // Missing new. Correct syntax is: tokens: new IToken[]
|
|
|
|
endState: state
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|