56 lines
4 KiB
Text
56 lines
4 KiB
Text
=== tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution2.ts ===
|
|
|
|
function foo1(strs: TemplateStringsArray, x: number): string;
|
|
>foo1 : Symbol(foo1, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 0, 0), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 61), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 49))
|
|
>strs : Symbol(strs, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 14))
|
|
>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.d.ts, 518, 38))
|
|
>x : Symbol(x, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 41))
|
|
|
|
function foo1(strs: string[], x: number): number;
|
|
>foo1 : Symbol(foo1, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 0, 0), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 61), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 49))
|
|
>strs : Symbol(strs, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 14))
|
|
>x : Symbol(x, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 29))
|
|
|
|
function foo1(...stuff: any[]): any {
|
|
>foo1 : Symbol(foo1, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 0, 0), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 61), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 49))
|
|
>stuff : Symbol(stuff, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 3, 14))
|
|
|
|
return undefined;
|
|
>undefined : Symbol(undefined)
|
|
}
|
|
|
|
var a = foo1 `${1}`; // string
|
|
>a : Symbol(a, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 7, 3))
|
|
>foo1 : Symbol(foo1, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 0, 0), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 61), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 49))
|
|
|
|
var b = foo1([], 1); // number
|
|
>b : Symbol(b, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 3))
|
|
>foo1 : Symbol(foo1, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 0, 0), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 1, 61), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 2, 49))
|
|
|
|
function foo2(strs: string[], x: number): number;
|
|
>foo2 : Symbol(foo2, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 20), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 49), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 61))
|
|
>strs : Symbol(strs, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 14))
|
|
>x : Symbol(x, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 29))
|
|
|
|
function foo2(strs: TemplateStringsArray, x: number): string;
|
|
>foo2 : Symbol(foo2, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 20), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 49), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 61))
|
|
>strs : Symbol(strs, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 14))
|
|
>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.d.ts, 518, 38))
|
|
>x : Symbol(x, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 41))
|
|
|
|
function foo2(...stuff: any[]): any {
|
|
>foo2 : Symbol(foo2, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 20), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 49), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 61))
|
|
>stuff : Symbol(stuff, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 12, 14))
|
|
|
|
return undefined;
|
|
>undefined : Symbol(undefined)
|
|
}
|
|
|
|
var c = foo2 `${1}`; // number
|
|
>c : Symbol(c, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 16, 3))
|
|
>foo2 : Symbol(foo2, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 20), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 49), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 61))
|
|
|
|
var d = foo2([], 1); // number
|
|
>d : Symbol(d, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 17, 3))
|
|
>foo2 : Symbol(foo2, Decl(taggedTemplateStringsWithOverloadResolution2.ts, 8, 20), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 10, 49), Decl(taggedTemplateStringsWithOverloadResolution2.ts, 11, 61))
|
|
|