Fix for crash when using ca call expression on private identifier coming from an any typed variable. (GH #42860) (#42861)

This commit is contained in:
Titian Cernicova-Dragomir
2021-02-18 23:54:10 +02:00
committed by GitHub
parent d2737ecd17
commit a2ed469022
6 changed files with 145 additions and 2 deletions

View File

@@ -6,5 +6,16 @@ class A {
method(thing: any) {
thing.#foo; // OK
thing.#bar; // Error
thing.#foo();
}
methodU(thing: unknown) {
thing.#foo;
thing.#bar;
thing.#foo();
}
methodN(thing: never) {
thing.#foo;
thing.#bar;
thing.#foo();
}
};