mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
TS: fix analysis of export= statements
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import * as dummy from "dummy"; // treat as ES module
|
||||
|
||||
class C {
|
||||
public x: int;
|
||||
constructor() {}
|
||||
|
||||
static async staticMethod() {}
|
||||
}
|
||||
|
||||
export = C;
|
||||
@@ -0,0 +1,5 @@
|
||||
import C from "./export_equals";
|
||||
|
||||
function f() {
|
||||
C.staticMethod(); // OK
|
||||
}
|
||||
Reference in New Issue
Block a user