-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure call-less references to builtin functions in namespaces e…
…rror (#2738)
- Loading branch information
1 parent
73193f0
commit 58ed2b2
Showing
3 changed files
with
46 additions
and
0 deletions.
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,15 @@ | ||
{ | ||
"stderr": [ | ||
"TS1140: Type argument expected.", | ||
"foo.bar;", | ||
"AS234: Expression does not compile to a value at runtime.", | ||
"foo.bar;", | ||
"TS1140: Type argument expected.", | ||
"memory.data;", | ||
"AS234: Expression does not compile to a value at runtime.", | ||
"memory.data;", | ||
"AS100: Not implemented: First-class built-ins", | ||
"atomic.fence;", | ||
"EOF" | ||
] | ||
} |
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,12 @@ | ||
namespace foo { | ||
export function bar<T>(): void {} | ||
} | ||
|
||
// Should error from missing type arguments: | ||
foo.bar; | ||
memory.data; | ||
|
||
// Should error from lacking first-class builtins: | ||
atomic.fence; | ||
|
||
ERROR("EOF"); |