diff options
Diffstat (limited to 'tests/method/temptybody.nim')
-rw-r--r-- | tests/method/temptybody.nim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/method/temptybody.nim b/tests/method/temptybody.nim deleted file mode 100644 index aad945f81..000000000 --- a/tests/method/temptybody.nim +++ /dev/null @@ -1,11 +0,0 @@ -# bug #2401 - -type MyClass = ref object of RootObj - -method HelloWorld*(obj: MyClass) {.base.} = - when defined(myPragma): - echo("Hello World") - # discard # with this line enabled it works - -var obj = MyClass() -obj.HelloWorld() |