11 lines
No EOL
223 B
TypeScript
11 lines
No EOL
223 B
TypeScript
class A {}
|
|
class B extends A {}
|
|
class C extends A {
|
|
public foo() { }
|
|
}
|
|
function foo(name: 'hi'): B;
|
|
function foo(name: 'bye'): C;
|
|
function foo(name: string): A;
|
|
function foo(name: any): A {
|
|
return null;
|
|
} |