2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts(2,16): error TS1005: ';' expected.
|
|
|
|
tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts(12,22): error TS1005: ';' expected.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts (2 errors) ====
|
|
|
|
var x: {
|
|
|
|
foo: string,
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
bar: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// ASI makes this work
|
|
|
|
var y: {
|
|
|
|
foo: string
|
|
|
|
bar: string
|
|
|
|
}
|
|
|
|
|
|
|
|
var z: { foo: string bar: string }
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|