summary refs log tree commit diff stats
path: root/tests/run/tmethods1.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-03-17 23:40:03 +0100
committerAraq <rumpf_a@web.de>2013-03-17 23:40:03 +0100
commit65319ba22db90e821c3e29091b10df8f84b3714b (patch)
treef770a4df01e119f9483525e04b8144b470ffd599 /tests/run/tmethods1.nim
parent3620155d937bb5d3ffe79ca9a62e4552ed7bca1b (diff)
downloadNim-65319ba22db90e821c3e29091b10df8f84b3714b.tar.gz
fixes #332
Diffstat (limited to 'tests/run/tmethods1.nim')
-rw-r--r--tests/run/tmethods1.nim12
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()