mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
14 lines
191 B
TypeScript
14 lines
191 B
TypeScript
import dummy from 'dummy';
|
|
|
|
var key1 = "key1"; // OK
|
|
export class NoConstructor {
|
|
[key1] = 4;
|
|
}
|
|
|
|
var key2 = "key2"; // OK
|
|
export class WithConstructor {
|
|
[key2] = 4;
|
|
|
|
constructor() {}
|
|
}
|