-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The error message for default args was added to a Node that was then removed from the AST. This fixes that and ensures the error is only reported once.
- Loading branch information
Showing
14 changed files
with
2,390 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Default args need to be later arguments | ||
class None0 | ||
{ | ||
test(x : None0, y : None0) : None0 | ||
{ | ||
x | ||
} | ||
} | ||
|
||
class None1 | ||
{ | ||
test(x : None1 = None1, y : None1) : None1 | ||
{ | ||
x | ||
} | ||
} | ||
|
||
class None2 | ||
{ | ||
test(x : None2, y : None2 = None2) : None2 | ||
{ | ||
x | ||
} | ||
} | ||
|
||
class None3 | ||
{ | ||
test(x : None3 = None3, y : None3 = None3) : None3 | ||
{ | ||
x | ||
} | ||
} | ||
|
||
class None4 | ||
{ | ||
test(x : None4 = None4, y : None4, z : None4 = None4) : None4 | ||
{ | ||
x | ||
} | ||
} |
137 changes: 137 additions & 0 deletions
137
testsuite/verona_nostdlib/issues/668/668_out/00_parse.trieste
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,137 @@ | ||
Verona | ||
parse | ||
(top | ||
{} | ||
(file | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None0) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(group | ||
(ident 1:x) | ||
(colon) | ||
(ident 5:None0)) | ||
(group | ||
(ident 1:y) | ||
(colon) | ||
(ident 5:None0)))) | ||
(colon) | ||
(ident 5:None0) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None1) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(colon) | ||
(ident 5:None1)) | ||
(group | ||
(ident 5:None1))) | ||
(group | ||
(ident 1:y) | ||
(colon) | ||
(ident 5:None1)))) | ||
(colon) | ||
(ident 5:None1) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None2) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(group | ||
(ident 1:x) | ||
(colon) | ||
(ident 5:None2)) | ||
(equals | ||
(group | ||
(ident 1:y) | ||
(colon) | ||
(ident 5:None2)) | ||
(group | ||
(ident 5:None2))))) | ||
(colon) | ||
(ident 5:None2) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None3) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(colon) | ||
(ident 5:None3)) | ||
(group | ||
(ident 5:None3))) | ||
(equals | ||
(group | ||
(ident 1:y) | ||
(colon) | ||
(ident 5:None3)) | ||
(group | ||
(ident 5:None3))))) | ||
(colon) | ||
(ident 5:None3) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None4) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(colon) | ||
(ident 5:None4)) | ||
(group | ||
(ident 5:None4))) | ||
(group | ||
(ident 1:y) | ||
(colon) | ||
(ident 5:None4)) | ||
(equals | ||
(group | ||
(ident 1:z) | ||
(colon) | ||
(ident 5:None4)) | ||
(group | ||
(ident 5:None4))))) | ||
(colon) | ||
(ident 5:None4) | ||
(brace | ||
(group | ||
(ident 1:x)))))))) |
146 changes: 146 additions & 0 deletions
146
testsuite/verona_nostdlib/issues/668/668_out/01_modules.trieste
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,146 @@ | ||
Verona | ||
modules | ||
(top | ||
{} | ||
(group | ||
(class | ||
{}) | ||
(ident 3:668) | ||
(brace | ||
(group | ||
(use) | ||
(ident 3:std) | ||
(doublecolon) | ||
(ident 7:builtin)) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None0) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(group | ||
(ident 1:x) | ||
(type | ||
(ident 5:None0))) | ||
(group | ||
(ident 1:y) | ||
(type | ||
(ident 5:None0))))) | ||
(type | ||
(ident 5:None0)) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None1) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(type | ||
(ident 5:None1))) | ||
(group | ||
(ident 5:None1))) | ||
(group | ||
(ident 1:y) | ||
(type | ||
(ident 5:None1))))) | ||
(type | ||
(ident 5:None1)) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None2) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(group | ||
(ident 1:x) | ||
(type | ||
(ident 5:None2))) | ||
(equals | ||
(group | ||
(ident 1:y) | ||
(type | ||
(ident 5:None2))) | ||
(group | ||
(ident 5:None2))))) | ||
(type | ||
(ident 5:None2)) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None3) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(type | ||
(ident 5:None3))) | ||
(group | ||
(ident 5:None3))) | ||
(equals | ||
(group | ||
(ident 1:y) | ||
(type | ||
(ident 5:None3))) | ||
(group | ||
(ident 5:None3))))) | ||
(type | ||
(ident 5:None3)) | ||
(brace | ||
(group | ||
(ident 1:x)))))) | ||
(group | ||
(class | ||
{}) | ||
(ident 5:None4) | ||
(brace | ||
(group | ||
(ident 4:test) | ||
(paren | ||
(list | ||
(equals | ||
(group | ||
(ident 1:x) | ||
(type | ||
(ident 5:None4))) | ||
(group | ||
(ident 5:None4))) | ||
(group | ||
(ident 1:y) | ||
(type | ||
(ident 5:None4))) | ||
(equals | ||
(group | ||
(ident 1:z) | ||
(type | ||
(ident 5:None4))) | ||
(group | ||
(ident 5:None4))))) | ||
(type | ||
(ident 5:None4)) | ||
(brace | ||
(group | ||
(ident 1:x))))))))) |
Oops, something went wrong.