Nim/tests/compile/toop.nim
2012-09-12 08:43:24 +02:00

21 lines
234 B
Nim
Executable file

discard """
output: "b"
"""
type
TA = object of TObject
x, y: int
TB = object of TA
z: int
TC = object of TB
whatever: string
proc p(a: var TA) = echo "a"
proc p(b: var TB) = echo "b"
var c: TC
p(c)