TypeScript/tests/baselines/reference/taggedTemplateStringsWithTagsTypedAsAny.errors.txt

58 lines
3.5 KiB
Text
Raw Normal View History

tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(3,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(5,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(7,7): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(9,7): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(11,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(13,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(15,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(17,3): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(19,32): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts(21,46): error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
==== tests/cases/conformance/es6/templates/taggedTemplateStringsWithTagsTypedAsAny.ts (10 errors) ====
2014-10-24 02:31:12 +02:00
var f: any;
f `abc`
~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc${1}def${2}ghi`;
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f.g.h `abc`
~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f.g.h `abc${1}def${2}ghi`;
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc`.member
~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc${1}def${2}ghi`.member;
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc`["member"];
~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc${1}def${2}ghi`["member"];
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc`["member"].someOtherTag `abc${1}def${2}ghi`;
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f `abc${1}def${2}ghi`["member"].someOtherTag `abc${1}def${2}ghi`;
~~~~~~
2014-11-01 23:30:07 +01:00
!!! error TS1159: Tagged templates are only available when targeting ECMAScript 6 and higher.
2014-10-24 02:31:12 +02:00
f.thisIsNotATag(`abc`);
f.thisIsNotATag(`abc${1}def${2}ghi`);