22 lines
No EOL
534 B
Text
22 lines
No EOL
534 B
Text
tests/cases/compiler/interfaceNameAsIdentifier.ts(4,1): error TS2304: Cannot find name 'C'.
|
|
tests/cases/compiler/interfaceNameAsIdentifier.ts(12,1): error TS2304: Cannot find name 'm2'.
|
|
|
|
|
|
==== tests/cases/compiler/interfaceNameAsIdentifier.ts (2 errors) ====
|
|
interface C {
|
|
(): void;
|
|
}
|
|
C();
|
|
~
|
|
!!! error TS2304: Cannot find name 'C'.
|
|
|
|
module m2 {
|
|
export interface C {
|
|
(): void;
|
|
}
|
|
}
|
|
|
|
m2.C();
|
|
~~
|
|
!!! error TS2304: Cannot find name 'm2'.
|
|
|