bugfix: compiler rejects methods without object parameter
This commit is contained in:
parent
da325bc7a4
commit
27bc9296d1
7 changed files with 28 additions and 3 deletions
4
tests/reject/tmethod.nim
Normal file
4
tests/reject/tmethod.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
method m(i: int): int =
|
||||
return 5
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue