122 lines
2.2 KiB
Text
122 lines
2.2 KiB
Text
=== tests/cases/conformance/es6/templates/taggedTemplateStringsWithTypedTagsES6.ts ===
|
|
interface I {
|
|
>I : I
|
|
|
|
(stringParts: string[], ...rest: number[]): I;
|
|
>stringParts : string[]
|
|
>rest : number[]
|
|
>I : I
|
|
|
|
g: I;
|
|
>g : I
|
|
>I : I
|
|
|
|
h: I;
|
|
>h : I
|
|
>I : I
|
|
|
|
member: I;
|
|
>member : I
|
|
>I : I
|
|
|
|
thisIsNotATag(x: string): void
|
|
>thisIsNotATag : (x: string) => void
|
|
>x : string
|
|
|
|
[x: number]: I;
|
|
>x : number
|
|
>I : I
|
|
}
|
|
|
|
var f: I;
|
|
>f : I
|
|
>I : I
|
|
|
|
f `abc`
|
|
>f `abc` : I
|
|
>f : I
|
|
>`abc` : string
|
|
|
|
f `abc${1}def${2}ghi`;
|
|
>f `abc${1}def${2}ghi` : I
|
|
>f : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
|
|
f `abc`.member
|
|
>f `abc`.member : I
|
|
>f `abc` : I
|
|
>f : I
|
|
>`abc` : string
|
|
>member : I
|
|
|
|
f `abc${1}def${2}ghi`.member;
|
|
>f `abc${1}def${2}ghi`.member : I
|
|
>f `abc${1}def${2}ghi` : I
|
|
>f : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
>member : I
|
|
|
|
f `abc`["member"];
|
|
>f `abc`["member"] : I
|
|
>f `abc` : I
|
|
>f : I
|
|
>`abc` : string
|
|
>"member" : string
|
|
|
|
f `abc${1}def${2}ghi`["member"];
|
|
>f `abc${1}def${2}ghi`["member"] : I
|
|
>f `abc${1}def${2}ghi` : I
|
|
>f : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
>"member" : string
|
|
|
|
f `abc`[0].member `abc${1}def${2}ghi`;
|
|
>f `abc`[0].member `abc${1}def${2}ghi` : I
|
|
>f `abc`[0].member : I
|
|
>f `abc`[0] : I
|
|
>f `abc` : I
|
|
>f : I
|
|
>`abc` : string
|
|
>0 : number
|
|
>member : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
|
|
f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi`;
|
|
>f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi` : I
|
|
>f `abc${1}def${2}ghi`["member"].member : I
|
|
>f `abc${1}def${2}ghi`["member"] : I
|
|
>f `abc${1}def${2}ghi` : I
|
|
>f : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
>"member" : string
|
|
>member : I
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
|
|
f.thisIsNotATag(`abc`);
|
|
>f.thisIsNotATag(`abc`) : void
|
|
>f.thisIsNotATag : (x: string) => void
|
|
>f : I
|
|
>thisIsNotATag : (x: string) => void
|
|
>`abc` : string
|
|
|
|
f.thisIsNotATag(`abc${1}def${2}ghi`);
|
|
>f.thisIsNotATag(`abc${1}def${2}ghi`) : void
|
|
>f.thisIsNotATag : (x: string) => void
|
|
>f : I
|
|
>thisIsNotATag : (x: string) => void
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : number
|
|
>2 : number
|
|
|