-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
Fixes: #2870
- Loading branch information
1 parent
f79391c
commit 32e5f64
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) |