36 lines
1 KiB
Text
36 lines
1 KiB
Text
=== tests/cases/compiler/anonterface.ts ===
|
|
module M {
|
|
>M : Symbol(M, Decl(anonterface.ts, 0, 0))
|
|
|
|
export class C {
|
|
>C : Symbol(C, Decl(anonterface.ts, 0, 10))
|
|
|
|
m(fn:{ (n:number):string; },n2:number):string {
|
|
>m : Symbol(m, Decl(anonterface.ts, 1, 20))
|
|
>fn : Symbol(fn, Decl(anonterface.ts, 2, 10))
|
|
>n : Symbol(n, Decl(anonterface.ts, 2, 16))
|
|
>n2 : Symbol(n2, Decl(anonterface.ts, 2, 36))
|
|
|
|
return fn(n2);
|
|
>fn : Symbol(fn, Decl(anonterface.ts, 2, 10))
|
|
>n2 : Symbol(n2, Decl(anonterface.ts, 2, 36))
|
|
}
|
|
}
|
|
}
|
|
|
|
var c=new M.C();
|
|
>c : Symbol(c, Decl(anonterface.ts, 8, 3))
|
|
>M.C : Symbol(M.C, Decl(anonterface.ts, 0, 10))
|
|
>M : Symbol(M, Decl(anonterface.ts, 0, 0))
|
|
>C : Symbol(M.C, Decl(anonterface.ts, 0, 10))
|
|
|
|
c.m(function(n) { return "hello: "+n; },18);
|
|
>c.m : Symbol(M.C.m, Decl(anonterface.ts, 1, 20))
|
|
>c : Symbol(c, Decl(anonterface.ts, 8, 3))
|
|
>m : Symbol(M.C.m, Decl(anonterface.ts, 1, 20))
|
|
>n : Symbol(n, Decl(anonterface.ts, 9, 13))
|
|
>n : Symbol(n, Decl(anonterface.ts, 9, 13))
|
|
|
|
|
|
|
|
|