diff options
author | Araq <rumpf_a@web.de> | 2013-03-17 23:40:03 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-17 23:40:03 +0100 |
commit | 65319ba22db90e821c3e29091b10df8f84b3714b (patch) | |
tree | f770a4df01e119f9483525e04b8144b470ffd599 /tests/run/tmethods1.nim | |
parent | 3620155d937bb5d3ffe79ca9a62e4552ed7bca1b (diff) | |
download | Nim-65319ba22db90e821c3e29091b10df8f84b3714b.tar.gz |
fixes #332
Diffstat (limited to 'tests/run/tmethods1.nim')
-rw-r--r-- | tests/run/tmethods1.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run/tmethods1.nim b/tests/run/tmethods1.nim index adcca9e19..f4add6af4 100644 --- a/tests/run/tmethods1.nim +++ b/tests/run/tmethods1.nim @@ -5,6 +5,18 @@ discard """ method somethin(obj: TObject) = echo "do nothing" +type + TNode* = object {.inheritable.} + PNode* = ref TNode + + PNodeFoo* = ref object of TNode + + TSomethingElse = object + PSomethingElse = ref TSomethingElse + +method foo(a: PNode, b: PSomethingElse) = nil +method foo(a: PNodeFoo, b: PSomethingElse) = nil + var o: TObject o.somethin() |