Skip to content

Commit f615b78

Browse files
committed
Add test for #47806
1 parent 7997a62 commit f615b78

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/// <reference path="../fourslash.ts"/>
2+
3+
// @Filename: tsconfig.json
4+
////{
5+
//// "compilerOptions": {
6+
//// "rootDir": "src",
7+
//// "outDir": "dist",
8+
//// "target": "ES2020",
9+
//// "module": "NodeNext",
10+
//// "strict": true
11+
//// },
12+
//// "include": ["src\\**\\*.ts"]
13+
////}
14+
15+
// @Filename: package.json
16+
////{
17+
//// "type": "module",
18+
//// "private": true
19+
////}
20+
21+
// @Filename: src/index.ts
22+
////// The line below should show a "Relative import paths need explicit file
23+
////// extensions..." error in VS Code, but it doesn't. The error is only picked up
24+
////// by `tsc` which seems to properly infer the module type.
25+
////import { helloWorld } from './example'
26+
/////**/
27+
////helloWorld()
28+
29+
// @Filename: src/example.ts
30+
////export function helloWorld() {
31+
//// console.log('Hello, world!')
32+
////}
33+
34+
goTo.marker();
35+
verify.numberOfErrorsInCurrentFile(1);

0 commit comments

Comments
 (0)