mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Merge pull request #2098 from asger-semmle/ts-computed-field-name-context
Approved by esben-semmle
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import dummy from 'dummy';
|
||||
|
||||
var key1 = "key1"; // OK
|
||||
export class NoConstructor {
|
||||
[key1] = 4;
|
||||
}
|
||||
|
||||
var key2 = "key2"; // OK
|
||||
export class WithConstructor {
|
||||
[key2] = 4;
|
||||
|
||||
constructor() {}
|
||||
}
|
||||
Reference in New Issue
Block a user