2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts(12,22): error TS1005: ';' expected.
|
|
|
|
|
|
|
|
|
2015-02-07 00:54:27 +01:00
|
|
|
==== tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts (1 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
var x: {
|
|
|
|
foo: string,
|
|
|
|
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.
|