add traceur test suite
This commit is contained in:
17
test/fixtures/traceur/MemberVariables/NestedClass.module.js
vendored
Normal file
17
test/fixtures/traceur/MemberVariables/NestedClass.module.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Options: --member-variables --types --type-assertions --type-assertion-module=../TypeAssertions/resources/assert.js
|
||||
|
||||
import '../TypeAssertions/resources/assert.js';
|
||||
|
||||
class C {
|
||||
d() {
|
||||
class D {
|
||||
x: number;
|
||||
}
|
||||
|
||||
return new D();
|
||||
}
|
||||
}
|
||||
|
||||
var d = new C().d();
|
||||
|
||||
assert.throw(() => { d.x = 'string'}, chai.AssertionError);
|
||||
Reference in New Issue
Block a user