mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-31 18:10:56 -05:00
Fixed issue in test.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
let [hello, brave, newish, world] = ["Hello", "Brave", "New", "World"];
|
||||
|
||||
type RexOrRaptor = "t-rex" | "raptor"
|
||||
let [im, a, dinosaur]: ["I'm", "a", Dinosaur] = ['I\'m', 'a', 't-rex'];
|
||||
let [im, a, dinosaur]: ["I'm", "a", RexOrRaptor] = ['I\'m', 'a', 't-rex'];
|
||||
|
||||
rawr(dinosaur);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user