TypeScript/tests/cases/compiler/dynamicImportWithNestedThis_es5.ts

14 lines
235 B
TypeScript
Raw Normal View History

// @lib: es2015
// @target: es5
// @module: umd
// https://github.com/Microsoft/TypeScript/issues/17564
class C {
private _path = './other';
dynamic() {
return import(this._path);
}
}
const c = new C();
c.dynamic();