40 lines
2.1 KiB
Text
40 lines
2.1 KiB
Text
=== tests/cases/compiler/typeParameterFixingWithConstraints.ts ===
|
|
interface IBar {
|
|
>IBar : Symbol(IBar, Decl(typeParameterFixingWithConstraints.ts, 0, 0))
|
|
|
|
[barId: string]: any;
|
|
>barId : Symbol(barId, Decl(typeParameterFixingWithConstraints.ts, 1, 5))
|
|
}
|
|
|
|
interface IFoo {
|
|
>IFoo : Symbol(IFoo, Decl(typeParameterFixingWithConstraints.ts, 2, 1))
|
|
|
|
foo<TBar extends IBar>(bar: TBar, bar1: (bar: TBar) => TBar, bar2: (bar: TBar) => TBar): TBar;
|
|
>foo : Symbol(foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>IBar : Symbol(IBar, Decl(typeParameterFixingWithConstraints.ts, 0, 0))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 27))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>bar1 : Symbol(bar1, Decl(typeParameterFixingWithConstraints.ts, 5, 37))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 45))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>bar2 : Symbol(bar2, Decl(typeParameterFixingWithConstraints.ts, 5, 64))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 72))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
|
|
}
|
|
|
|
var foo: IFoo;
|
|
>foo : Symbol(foo, Decl(typeParameterFixingWithConstraints.ts, 8, 3))
|
|
>IFoo : Symbol(IFoo, Decl(typeParameterFixingWithConstraints.ts, 2, 1))
|
|
|
|
foo.foo({ bar: null }, bar => null, bar => null);
|
|
>foo.foo : Symbol(IFoo.foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
|
|
>foo : Symbol(foo, Decl(typeParameterFixingWithConstraints.ts, 8, 3))
|
|
>foo : Symbol(IFoo.foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 9))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 22))
|
|
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 35))
|
|
|