-
-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: report error for mulitple union type (#2872)
- Loading branch information
1 parent
4bd1c12
commit 1847c8f
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function foo(a: aaa | bbb | ccc): i32 { | ||
return 1; | ||
} | ||
|
||
export function bar(a: i32 | u32 | f32): i32 { | ||
return 1; | ||
} | ||
|
||
export let a: i32 | u32 | f32 | null = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export let a = 1; | ||
// ERROR 100: "Not implemented: union types" in union.ts(1,36+3) | ||
// ERROR 100: "Not implemented: union types" in union.ts(5,36+3) | ||
// ERROR 100: "Not implemented: union types" in union.ts(9,27+10) |