34 lines
No EOL
621 B
Text
34 lines
No EOL
621 B
Text
==== tests/cases/compiler/clinterfaces.ts (4 errors) ====
|
|
module M {
|
|
class C { }
|
|
interface C { }
|
|
~
|
|
!!! Duplicate identifier 'C'.
|
|
interface D { }
|
|
class D { }
|
|
~
|
|
!!! Duplicate identifier 'D'.
|
|
}
|
|
|
|
interface Foo<T> {
|
|
a: string;
|
|
}
|
|
|
|
class Foo<T>{
|
|
~~~
|
|
!!! Duplicate identifier 'Foo'.
|
|
b: number;
|
|
}
|
|
|
|
class Bar<T>{
|
|
b: number;
|
|
}
|
|
|
|
interface Bar<T> {
|
|
~~~
|
|
!!! Duplicate identifier 'Bar'.
|
|
a: string;
|
|
}
|
|
|
|
export = Foo;
|
|
|