Added test for parenthesized string literals.

This commit is contained in:
Daniel Rosenwasser
2015-11-10 11:56:32 -08:00
parent c011ed455b
commit 694c714cf5

View File

@@ -0,0 +1,8 @@
// @declaration: true
declare function myRandBool(): boolean;
let a: "foo" = ("foo");
let b: "foo" | "bar" = ("foo");
let c: "foo" = (myRandBool ? "foo" : ("foo"));
let d: "foo" | "bar" = (myRandBool ? "foo" : ("bar"));