compilation cache: tests now part of test suite

This commit is contained in:
Araq 2011-10-27 23:25:34 +02:00
commit 2d54b85089
19 changed files with 250 additions and 46 deletions

View file

@ -0,0 +1,30 @@
discard """
output: '''
derived class
base class
'''
"""
import amethods
type
TDerivedClass* = object of TBaseClass
proc newDerivedClass: ref TDerivedClass =
new result
method echoType*(x: ref TDerivedClass) =
echo "derived class"
var b, d: ref TBaseClass
b = newBaseClass()
d = newDerivedClass()
#b.echoType()
#d.echoType()
echoAlias d
echoAlias b