mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
21 lines
482 B
TypeScript
21 lines
482 B
TypeScript
// @module: es2020
|
|
// @target: es2020
|
|
// @strictNullChecks: true
|
|
// @filename: 0.ts
|
|
export class B {
|
|
print() { return "I am B"}
|
|
}
|
|
|
|
export function foo() { return "foo" }
|
|
|
|
// @filename: 1.ts
|
|
export function backup() { return "backup"; }
|
|
|
|
// @filename: 2.ts
|
|
declare function bar(): boolean;
|
|
const specify = bar() ? "./0" : undefined;
|
|
let myModule = import(specify);
|
|
let myModule1 = import(undefined);
|
|
let myModule2 = import(bar() ? "./1" : null);
|
|
let myModule3 = import(null);
|