35 lines
721 B
Plaintext
35 lines
721 B
Plaintext
==== tests/cases/compiler/augmentedTypesClass2.ts (2 errors) ====
|
|
// Checking class with other things in type space not value space
|
|
|
|
// class then interface
|
|
class c11 {
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
interface c11 { // error
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'c11'.
|
|
bar(): void;
|
|
}
|
|
|
|
// class then class - covered
|
|
// class then enum
|
|
class c33 {
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
enum c33 { One };
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'c33'.
|
|
|
|
// class then import
|
|
class c44 {
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|