mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Added test for parenthesized string literals.
This commit is contained in:
+8
@@ -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"));
|
||||
Reference in New Issue
Block a user