36 lines
No EOL
1.3 KiB
Text
36 lines
No EOL
1.3 KiB
Text
tests/cases/conformance/classes/classExpression.ts(1,9): error TS1109: Expression expected.
|
|
tests/cases/conformance/classes/classExpression.ts(5,10): error TS1109: Expression expected.
|
|
tests/cases/conformance/classes/classExpression.ts(5,16): error TS1005: ':' expected.
|
|
tests/cases/conformance/classes/classExpression.ts(5,19): error TS1005: ',' expected.
|
|
tests/cases/conformance/classes/classExpression.ts(7,1): error TS1128: Declaration or statement expected.
|
|
tests/cases/conformance/classes/classExpression.ts(10,13): error TS1109: Expression expected.
|
|
tests/cases/conformance/classes/classExpression.ts(5,16): error TS2304: Cannot find name 'C2'.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classExpression.ts (7 errors) ====
|
|
var x = class C {
|
|
~~~~~
|
|
!!! error TS1109: Expression expected.
|
|
}
|
|
|
|
var y = {
|
|
foo: class C2 {
|
|
~~~~~
|
|
!!! error TS1109: Expression expected.
|
|
~~
|
|
!!! error TS1005: ':' expected.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~~
|
|
!!! error TS2304: Cannot find name 'C2'.
|
|
}
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected.
|
|
|
|
module M {
|
|
var z = class C4 {
|
|
~~~~~
|
|
!!! error TS1109: Expression expected.
|
|
}
|
|
} |