2018-03-01 04:07:53 +01:00
|
|
|
// Fix #19666
|
|
|
|
|
|
|
|
let symbol!: symbol;
|
|
|
|
let str = "hello ";
|
|
|
|
|
|
|
|
const templateStr = `hello ${symbol}`;
|
|
|
|
const appendStr = "hello " + symbol;
|
|
|
|
str += symbol;
|
2018-03-06 11:46:43 +01:00
|
|
|
|
|
|
|
let symbolUnionNumber!: symbol | number;
|
|
|
|
let symbolUnionString!: symbol | string;
|
|
|
|
|
|
|
|
const templateStrUnion = `union with number ${symbolUnionNumber} and union with string ${symbolUnionString}`;
|