mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
//// [tests/cases/compiler/importNotElidedWhenNotFound.ts] ////
|
|
|
|
//// [importNotElidedWhenNotFound.ts]
|
|
import X from 'file';
|
|
import Z from 'other_file';
|
|
|
|
class Y extends Z {
|
|
constructor() {
|
|
super(X);
|
|
}
|
|
}
|
|
|
|
import X2 from 'file2';
|
|
import X3 from 'file3';
|
|
class Q extends Z {
|
|
constructor() {
|
|
super(X2, X3);
|
|
}
|
|
}
|
|
|
|
|
|
//// [importNotElidedWhenNotFound.js]
|
|
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const file_1 = __importDefault(require("file"));
|
|
const other_file_1 = __importDefault(require("other_file"));
|
|
class Y extends other_file_1.default {
|
|
constructor() {
|
|
super(file_1.default);
|
|
}
|
|
}
|
|
const file2_1 = __importDefault(require("file2"));
|
|
const file3_1 = __importDefault(require("file3"));
|
|
class Q extends other_file_1.default {
|
|
constructor() {
|
|
super(file2_1.default, file3_1.default);
|
|
}
|
|
}
|