21 lines
650 B
Plaintext
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. |