mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
//// [tests/cases/compiler/anonterface.ts] ////
|
|
|
|
=== anonterface.ts ===
|
|
namespace M {
|
|
>M : Symbol(M, Decl(anonterface.ts, 0, 0))
|
|
|
|
export class C {
|
|
>C : Symbol(C, Decl(anonterface.ts, 0, 13))
|
|
|
|
m(fn:{ (n:number):string; },n2:number):string {
|
|
>m : Symbol(C.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, 13))
|
|
>M : Symbol(M, Decl(anonterface.ts, 0, 0))
|
|
>C : Symbol(M.C, Decl(anonterface.ts, 0, 13))
|
|
|
|
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))
|
|
|
|
|
|
|
|
|