25 lines
293 B
Text
25 lines
293 B
Text
|
=== tests/cases/compiler/classOrder1.ts ===
|
||
|
class A {
|
||
|
>A : A
|
||
|
|
||
|
public foo() {
|
||
|
>foo : () => void
|
||
|
|
||
|
/*WScript.Echo("Here!");*/
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var a = new A();
|
||
|
>a : A
|
||
|
>new A() : A
|
||
|
>A : typeof A
|
||
|
|
||
|
a.foo();
|
||
|
>a.foo() : void
|
||
|
>a.foo : () => void
|
||
|
>a : A
|
||
|
>foo : () => void
|
||
|
|
||
|
|
||
|
|