29 lines
416 B
TypeScript
29 lines
416 B
TypeScript
// Checking class with other things in type space not value space
|
|
|
|
// class then interface
|
|
class c11 { // error
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
interface c11 { // error
|
|
bar(): void;
|
|
}
|
|
|
|
// class then class - covered
|
|
// class then enum
|
|
class c33 {
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
enum c33 { One };
|
|
|
|
// class then import
|
|
class c44 {
|
|
foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
|