Added test for ASI concerns.

This commit is contained in:
Daniel Rosenwasser 2018-04-19 10:34:31 -07:00
parent 78e98c3784
commit 8e27f4693c

View file

@ -18,3 +18,14 @@ const b = new tag<number> `${"hello"} ${"world"}`(100, 200);
const c = new tag<number> `${100} ${200}`<string>("hello", "world");
const d = new tag<number> `${"hello"} ${"world"}`<string>(100, 200);
/**
* Testing ASI. This should never parse as
*
* ```ts
* new tag<number>;
* `hello${369}`();
* ```
*/
const e = new tag<number>
`hello`();