ory contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)
summary refs log tree commit diff stats
path: root/tests/varstmt/tvardecl.nim
blob: d5ccfafb7eea86146148b320f8d0381ed942b5a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ines'>
discard """
  file: "tmultim3.nim"
  output: "Hi derived!"
"""
import mmultim3

type
    TBObj* = object of TObj


method test123(a : ref TBObj) =
    echo("Hi derived!")

var a : ref TBObj
new(a)
myObj = a
testMyObj()