cce4bfbc7c
* Revert changes for template literal types, keeping tests. * Update Baselines and/or Applied Lint Fixes Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
113 lines
2.1 KiB
Plaintext
113 lines
2.1 KiB
Plaintext
=== tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAnyES6.ts ===
|
|
var f: any;
|
|
>f : any
|
|
|
|
f `abc`
|
|
>f `abc` : any
|
|
>f : any
|
|
>`abc` : "abc"
|
|
|
|
f `abc${1}def${2}ghi`;
|
|
>f `abc${1}def${2}ghi` : any
|
|
>f : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
|
|
f.g.h `abc`
|
|
>f.g.h `abc` : any
|
|
>f.g.h : any
|
|
>f.g : any
|
|
>f : any
|
|
>g : any
|
|
>h : any
|
|
>`abc` : "abc"
|
|
|
|
f.g.h `abc${1}def${2}ghi`;
|
|
>f.g.h `abc${1}def${2}ghi` : any
|
|
>f.g.h : any
|
|
>f.g : any
|
|
>f : any
|
|
>g : any
|
|
>h : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
|
|
f `abc`.member
|
|
>f `abc`.member : any
|
|
>f `abc` : any
|
|
>f : any
|
|
>`abc` : "abc"
|
|
>member : any
|
|
|
|
f `abc${1}def${2}ghi`.member;
|
|
>f `abc${1}def${2}ghi`.member : any
|
|
>f `abc${1}def${2}ghi` : any
|
|
>f : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
>member : any
|
|
|
|
f `abc`["member"];
|
|
>f `abc`["member"] : any
|
|
>f `abc` : any
|
|
>f : any
|
|
>`abc` : "abc"
|
|
>"member" : "member"
|
|
|
|
f `abc${1}def${2}ghi`["member"];
|
|
>f `abc${1}def${2}ghi`["member"] : any
|
|
>f `abc${1}def${2}ghi` : any
|
|
>f : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
>"member" : "member"
|
|
|
|
f `abc`["member"].someOtherTag `abc${1}def${2}ghi`;
|
|
>f `abc`["member"].someOtherTag `abc${1}def${2}ghi` : any
|
|
>f `abc`["member"].someOtherTag : any
|
|
>f `abc`["member"] : any
|
|
>f `abc` : any
|
|
>f : any
|
|
>`abc` : "abc"
|
|
>"member" : "member"
|
|
>someOtherTag : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
|
|
f `abc${1}def${2}ghi`["member"].someOtherTag `abc${1}def${2}ghi`;
|
|
>f `abc${1}def${2}ghi`["member"].someOtherTag `abc${1}def${2}ghi` : any
|
|
>f `abc${1}def${2}ghi`["member"].someOtherTag : any
|
|
>f `abc${1}def${2}ghi`["member"] : any
|
|
>f `abc${1}def${2}ghi` : any
|
|
>f : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
>"member" : "member"
|
|
>someOtherTag : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
|
|
f.thisIsNotATag(`abc`);
|
|
>f.thisIsNotATag(`abc`) : any
|
|
>f.thisIsNotATag : any
|
|
>f : any
|
|
>thisIsNotATag : any
|
|
>`abc` : "abc"
|
|
|
|
f.thisIsNotATag(`abc${1}def${2}ghi`);
|
|
>f.thisIsNotATag(`abc${1}def${2}ghi`) : any
|
|
>f.thisIsNotATag : any
|
|
>f : any
|
|
>thisIsNotATag : any
|
|
>`abc${1}def${2}ghi` : string
|
|
>1 : 1
|
|
>2 : 2
|
|
|