Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[oil-language] Detect duplicate declarations as syntax errors.
This includes proc params. Wasn't too hard! We should also be able to test set/setlocal statically. But I think setvar/setglobal don't know what globals there are because of 'source' and environment vars. (shopt -u copy_env in Oil?) This fixes the Julia example. But we also have a 'const' issue. I think that is OK for now.
- Loading branch information
Andy Chu
committed
Jan 11, 2021
1 parent
7fabe88
commit 06a6e6f
Showing
6 changed files
with
69 additions
and
26 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
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 |
---|---|---|
|
@@ -252,7 +252,7 @@ f() { | |
} | ||
f | ||
var x = "redeclaration is an error" | ||
## status: 1 | ||
## status: 2 | ||
## STDOUT: | ||
x=local | ||
## END | ||
|
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