fixes #332
This commit is contained in:
parent
3620155d93
commit
65319ba22d
2 changed files with 14 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue