mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
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:
committed by
GitHub
parent
d2737ecd17
commit
a2ed469022
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user