2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/nestedClassDeclaration.ts(5,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
tests/cases/conformance/classes/nestedClassDeclaration.ts(7,1): error TS1128: Declaration or statement expected.
tests/cases/conformance/classes/nestedClassDeclaration.ts(10,5): error TS1129: Statement expected.
tests/cases/conformance/classes/nestedClassDeclaration.ts(12,1): error TS1128: Declaration or statement expected.
tests/cases/conformance/classes/nestedClassDeclaration.ts(15,11): error TS1005: ':' expected.
2014-12-17 00:56:56 +01:00
tests/cases/conformance/classes/nestedClassDeclaration.ts(15,11): error TS2304: Cannot find name 'C4'.
2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/nestedClassDeclaration.ts(15,14): error TS1005: ',' expected.
tests/cases/conformance/classes/nestedClassDeclaration.ts(17,1): error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/nestedClassDeclaration.ts (8 errors) ====
// nested classes are not allowed
class C {
x: string;
class C2 {
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
2014-07-13 01:04:16 +02:00
}
}
~
2014-09-12 00:19:57 +02:00
!!! error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00
function foo() {
class C3 {
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS1129: Statement expected.
2014-07-13 01:04:16 +02:00
}
}
~
2014-09-12 00:19:57 +02:00
!!! error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00
var x = {
class C4 {
~~
2014-09-12 00:19:57 +02:00
!!! error TS1005: ':' expected.
2014-07-13 01:04:16 +02:00
~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'C4'.
2014-12-17 00:56:56 +01:00
~
!!! error TS1005: ',' expected.
2014-07-13 01:04:16 +02:00
}
}
~
2014-09-12 00:19:57 +02:00
!!! error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00