TypeScript/tests/baselines/reference/templateStringWithEmbeddedMultiplicationES6.types
Anders Hejlsberg ee1f262698
Template literal types for template literal expressions (#41891)
* Infer template literal types for template literal expressions

* Update test

* Update another test

* Accept new baselines

* Minor fixes

* Add tests

* Accept new baselines

* Make new TypeFlags internal

* Accept new API baselines

* Ensure template literals assignable to String, Object, {}, etc.

* Add tests
2020-12-11 15:07:37 -10:00

9 lines
212 B
Plaintext

=== tests/cases/conformance/es6/templates/templateStringWithEmbeddedMultiplicationES6.ts ===
var x = `abc${ 7 * 6 }def`;
>x : string
>`abc${ 7 * 6 }def` : `abc${number}def`
>7 * 6 : number
>7 : 7
>6 : 6