mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #12
This commit is contained in:
10
tests/accept/run/tmethods1.nim
Normal file
10
tests/accept/run/tmethods1.nim
Normal file
@@ -0,0 +1,10 @@
|
||||
discard """
|
||||
output: "do nothing"
|
||||
"""
|
||||
|
||||
method somethin(obj: TObject) =
|
||||
echo "do nothing"
|
||||
|
||||
var o: TObject
|
||||
o.somethin()
|
||||
|
||||
Reference in New Issue
Block a user