|
| 1 | +Input:: |
| 2 | +//// [/lib/lib.d.ts] |
| 3 | +/// <reference no-default-lib="true"/> |
| 4 | +interface Boolean {} |
| 5 | +interface Function {} |
| 6 | +interface CallableFunction {} |
| 7 | +interface NewableFunction {} |
| 8 | +interface IArguments {} |
| 9 | +interface Number { toExponential: any; } |
| 10 | +interface Object {} |
| 11 | +interface RegExp {} |
| 12 | +interface String { charAt: any; } |
| 13 | +interface Array<T> { length: number; [n: number]: T; } |
| 14 | +interface ReadonlyArray<T> {} |
| 15 | +declare const console: { log(msg: any): void; }; |
| 16 | + |
| 17 | +//// [/src/project/node_modules/fp-ts/lib/struct.d.ts] |
| 18 | +export function foo(): void |
| 19 | + |
| 20 | +//// [/src/project/src/struct.d.ts] |
| 21 | +import * as xs1 from "fp-ts/lib/Struct"; |
| 22 | +import * as xs2 from "fp-ts/lib/struct"; |
| 23 | +import * as xs3 from "./Struct"; |
| 24 | +import * as xs4 from "./struct"; |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +Output:: |
| 30 | +/lib/tsc /src/project/src/struct.d.ts --forceConsistentCasingInFileNames --explainFiles |
| 31 | +[96msrc/project/src/struct.d.ts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS1149: [0mFile name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. |
| 32 | + The file is in the program because: |
| 33 | + Root file specified for compilation |
| 34 | + Imported via "./Struct" from file '/src/project/src/struct.d.ts' |
| 35 | + Imported via "./struct" from file '/src/project/src/struct.d.ts' |
| 36 | + |
| 37 | +[7m3[0m import * as xs3 from "./Struct"; |
| 38 | +[7m [0m [91m ~~~~~~~~~~[0m |
| 39 | + |
| 40 | + [96msrc/project/src/struct.d.ts[0m:[93m4[0m:[93m22[0m |
| 41 | + [7m4[0m import * as xs4 from "./struct"; |
| 42 | + [7m [0m [96m ~~~~~~~~~~[0m |
| 43 | + File is included via import here. |
| 44 | + |
| 45 | +lib/lib.d.ts |
| 46 | + Default library for target 'es3' |
| 47 | +src/project/node_modules/fp-ts/lib/struct.d.ts |
| 48 | + Imported via "fp-ts/lib/Struct" from file 'src/project/src/struct.d.ts' |
| 49 | + Imported via "fp-ts/lib/struct" from file 'src/project/src/struct.d.ts' |
| 50 | +src/project/src/struct.d.ts |
| 51 | + Root file specified for compilation |
| 52 | + Imported via "./Struct" from file 'src/project/src/struct.d.ts' |
| 53 | + Imported via "./struct" from file 'src/project/src/struct.d.ts' |
| 54 | + |
| 55 | +Found 1 error in src/project/src/struct.d.ts[90m:3[0m |
| 56 | + |
| 57 | +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated |
| 58 | + |
| 59 | + |
0 commit comments