If consequent is a block statement, treat as trailing comment

This commit is contained in:
Lucas Duailibe committed 2018-04-05 17:22:10 -03:00
1 parent 88489a9afe
commit fa089f5bb6
3 files changed
+18 -10

No files matched your search

@@ -2571,8 +2571,7 @@ type Breakfast = Apple | Orange | Broccoli | Carrot;
function bar(x: Breakfast) {
if (x.kind === "Fruit") {
(x.taste: "Good");
}
// error, Apple.taste = Bad
} // error, Apple.taste = Bad
else (x.raw: "No"); // error, Carrot.raw = Maybe
}