mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 16:38:46 -05:00
Added test for parenthesized string literals.
This commit is contained in:
@@ -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