-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fixes #17437 * Fix bug reference comment Co-authored-by: Timothee Cour <[email protected]> * [skip ci] describe why we have hasError Co-authored-by: Timothee Cour <[email protected]>
- Loading branch information
1 parent
8b26b3a
commit c6dc9c0
Showing
2 changed files
with
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
discard """ | ||
cmd: "nim check $file" | ||
errormsg: "" | ||
nimout: ''' | ||
t17437.nim(20, 16) Error: undeclared identifier: 'x' | ||
t17437.nim(20, 16) Error: expression 'x' has no type (or is ambiguous) | ||
t17437.nim(20, 19) Error: incorrect object construction syntax | ||
t17437.nim(20, 19) Error: incorrect object construction syntax | ||
t17437.nim(20, 12) Error: expression '' has no type (or is ambiguous) | ||
''' | ||
""" | ||
|
||
# bug #17437 invalid object construction should result in error | ||
|
||
type | ||
V = ref object | ||
x, y: int | ||
|
||
proc m = | ||
var v = V(x: x, y) | ||
|
||
m() |