TypeScript/tests/cases/conformance/expressions/asOperator/asOperator3.ts
2015-06-18 14:03:14 -07:00

10 lines
354 B
TypeScript

declare function tag(...x: any[]): any;
var a = `${123 + 456 as number}`;
var b = `leading ${123 + 456 as number}`;
var c = `${123 + 456 as number} trailing`;
var d = `Hello ${123} World` as string;
var e = `Hello` as string;
var f = 1 + `${1} end of string` as string;
var g = tag `Hello ${123} World` as string;
var h = tag `Hello` as string;