@@ -14,11 +14,20 @@ tests/cases/compiler/main.ts(36,8): error TS1192: Module '"class-module"' has no
14
14
tests/cases/compiler/main.ts(39,21): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
15
15
tests/cases/compiler/main.ts(45,21): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
16
16
tests/cases/compiler/main.ts(47,21): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
17
+ tests/cases/compiler/main.ts(50,1): error TS2693: 'y1' only refers to a type, but is being used as a value here.
18
+ tests/cases/compiler/main.ts(56,4): error TS2339: Property 'a' does not exist on type '() => any'.
19
+ tests/cases/compiler/main.ts(58,4): error TS2339: Property 'a' does not exist on type 'typeof Foo'.
20
+ tests/cases/compiler/main.ts(62,10): error TS2305: Module '"interface"' has no exported member 'a'.
17
21
tests/cases/compiler/main.ts(62,25): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
22
+ tests/cases/compiler/main.ts(68,10): error TS2305: Module '"function"' has no exported member 'a'.
18
23
tests/cases/compiler/main.ts(68,25): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
24
+ tests/cases/compiler/main.ts(70,10): error TS2305: Module '"class"' has no exported member 'a'.
19
25
tests/cases/compiler/main.ts(70,25): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
26
+ tests/cases/compiler/main.ts(85,10): error TS2305: Module '"interface"' has no exported member 'a'.
20
27
tests/cases/compiler/main.ts(85,25): error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
28
+ tests/cases/compiler/main.ts(91,10): error TS2305: Module '"function"' has no exported member 'a'.
21
29
tests/cases/compiler/main.ts(91,25): error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
30
+ tests/cases/compiler/main.ts(93,10): error TS2305: Module '"class"' has no exported member 'a'.
22
31
tests/cases/compiler/main.ts(93,25): error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
23
32
tests/cases/compiler/main.ts(97,15): error TS2498: Module '"interface"' uses 'export =' and cannot be used with 'export *'.
24
33
tests/cases/compiler/main.ts(98,15): error TS2498: Module '"variable"' uses 'export =' and cannot be used with 'export *'.
@@ -32,7 +41,7 @@ tests/cases/compiler/main.ts(105,15): error TS2498: Module '"class"' uses 'expor
32
41
tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses 'export =' and cannot be used with 'export *'.
33
42
34
43
35
- ==== tests/cases/compiler/main.ts (32 errors) ====
44
+ ==== tests/cases/compiler/main.ts (41 errors) ====
36
45
/// <reference path="modules.d.ts"/>
37
46
38
47
// import-equals
@@ -115,18 +124,26 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
115
124
import * as y0 from "class-module";
116
125
117
126
y1.a;
127
+ ~~
128
+ !!! error TS2693: 'y1' only refers to a type, but is being used as a value here.
118
129
y2.a;
119
130
y3.a;
120
131
y4.a;
121
132
y5.a;
122
133
y6.a;
123
134
y7.a;
135
+ ~
136
+ !!! error TS2339: Property 'a' does not exist on type '() => any'.
124
137
y8.a;
125
138
y9.a;
139
+ ~
140
+ !!! error TS2339: Property 'a' does not exist on type 'typeof Foo'.
126
141
y0.a;
127
142
128
143
// named import
129
144
import { a as a1 } from "interface";
145
+ ~
146
+ !!! error TS2305: Module '"interface"' has no exported member 'a'.
130
147
~~~~~~~~~~~
131
148
!!! error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
132
149
import { a as a2 } from "variable";
@@ -135,10 +152,14 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
135
152
import { a as a5 } from "interface-module";
136
153
import { a as a6 } from "variable-module";
137
154
import { a as a7 } from "function";
155
+ ~
156
+ !!! error TS2305: Module '"function"' has no exported member 'a'.
138
157
~~~~~~~~~~
139
158
!!! error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
140
159
import { a as a8 } from "function-module";
141
160
import { a as a9 } from "class";
161
+ ~
162
+ !!! error TS2305: Module '"class"' has no exported member 'a'.
142
163
~~~~~~~
143
164
!!! error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
144
165
import { a as a0 } from "class-module";
@@ -156,6 +177,8 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
156
177
157
178
// named export
158
179
export { a as a1 } from "interface";
180
+ ~
181
+ !!! error TS2305: Module '"interface"' has no exported member 'a'.
159
182
~~~~~~~~~~~
160
183
!!! error TS2497: Module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
161
184
export { a as a2 } from "variable";
@@ -164,10 +187,14 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
164
187
export { a as a5 } from "interface-module";
165
188
export { a as a6 } from "variable-module";
166
189
export { a as a7 } from "function";
190
+ ~
191
+ !!! error TS2305: Module '"function"' has no exported member 'a'.
167
192
~~~~~~~~~~
168
193
!!! error TS2497: Module '"function"' resolves to a non-module entity and cannot be imported using this construct.
169
194
export { a as a8 } from "function-module";
170
195
export { a as a9 } from "class";
196
+ ~
197
+ !!! error TS2305: Module '"class"' has no exported member 'a'.
171
198
~~~~~~~
172
199
!!! error TS2497: Module '"class"' resolves to a non-module entity and cannot be imported using this construct.
173
200
export { a as a0 } from "class-module";
0 commit comments