2015-02-03 00:30:33 +01:00
|
|
|
//// [nestedClassDeclaration.ts]
|
|
|
|
// nested classes are not allowed
|
|
|
|
|
|
|
|
class C {
|
|
|
|
x: string;
|
|
|
|
class C2 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function foo() {
|
|
|
|
class C3 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var x = {
|
|
|
|
class C4 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [nestedClassDeclaration.js]
|
|
|
|
// nested classes are not allowed
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
var C2 = (function () {
|
|
|
|
function C2() {
|
|
|
|
}
|
|
|
|
return C2;
|
|
|
|
})();
|
2015-02-07 03:45:09 +01:00
|
|
|
function foo() { }
|
2015-02-03 00:30:33 +01:00
|
|
|
var C3 = (function () {
|
|
|
|
function C3() {
|
|
|
|
}
|
|
|
|
return C3;
|
|
|
|
})();
|
|
|
|
var x = {
|
|
|
|
class: C4
|
|
|
|
}, _a = void 0;
|