TypeScript/tests/baselines/reference/objectTypeLiteralSyntax2.errors.txt
2014-09-12 13:35:07 -07:00

21 lines
650 B
Plaintext

tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts(2,16): error TS1005: ';' expected.
tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts(12,22): error TS1005: ';' expected.
==== tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts (2 errors) ====
var x: {
foo: string,
~
!!! error TS1005: ';' expected.
bar: string
}
// ASI makes this work
var y: {
foo: string
bar: string
}
var z: { foo: string bar: string }
~~~
!!! error TS1005: ';' expected.