You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/cases/compiler/errorForUsingPropertyOfTypeAsType03.ts(23,13): error TS2713: Cannot access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type of the property 'Red' in 'C2' with 'C2["Red"]'?
7
+
tests/cases/compiler/errorForUsingPropertyOfTypeAsType03.ts(24,13): error TS2713: Cannot access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type of the property 'Red' in 'C2' with 'C2["Red"]'?
!!! error TS2702: 'C1' only refers to a type, but is being used as a namespace here.
36
+
let c2: C1.Red["toString"];
37
37
~~
38
-
!!! error TS2503: Cannot find namespace 'T1'.
38
+
!!! error TS2702: 'C1' only refers to a type, but is being used as a namespace here.
39
39
let c3: C1["Red"]["toString"];
40
40
~~~~~
41
41
!!! error TS2339: Property 'Red' does not exist on type 'Color'.
42
42
43
-
let d1: T2.Red.toString;
44
-
~~
45
-
!!! error TS2503: Cannot find namespace 'T2'.
46
-
let d2: T2.Red["toString"];
47
-
~~
48
-
!!! error TS2503: Cannot find namespace 'T2'.
43
+
let d1: C2.Red.toString;
44
+
~~~~~~
45
+
!!! error TS2713: Cannot access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type of the property 'Red' in 'C2' with 'C2["Red"]'?
46
+
let d2: C2.Red["toString"];
47
+
~~~~~~
48
+
!!! error TS2713: Cannot access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type of the property 'Red' in 'C2' with 'C2["Red"]'?
0 commit comments