made tests green again

This commit is contained in:
Araq 2012-08-24 19:08:34 +02:00
commit 8a92e95ccf
7 changed files with 7 additions and 7 deletions

View file

@ -306,7 +306,7 @@ when isMainModule:
testit(test7) testit(test7)
type type
TA = object TA {.inheritable.} = object
TB = object of TA TB = object of TA
f: int f: int

View file

@ -165,7 +165,7 @@ type
TThreadLocalStorage = array [0..1_000, float] TThreadLocalStorage = array [0..1_000, float]
PGcThread = ptr TGcThread PGcThread = ptr TGcThread
TGcThread {.pure.} = object TGcThread {.pure, inheritable.} = object
sys: TSysThread sys: TSysThread
when emulatedThreadVars and not useStackMaskHack: when emulatedThreadVars and not useStackMaskHack:
tls: TThreadLocalStorage tls: TThreadLocalStorage

View file

@ -1,6 +1,6 @@
discard """ discard """
file: "system.nim" file: "system.nim"
line: 643 line: 646
errormsg: "type mismatch" errormsg: "type mismatch"
""" """

View file

@ -1,5 +1,5 @@
type type
TObj* = object TObj* = object {.inheritable.}
var myObj* : ref TObj var myObj* : ref TObj

View file

@ -5,7 +5,7 @@ discard """
# Test multi methods # Test multi methods
type type
Expression = ref object Expression = ref object {.inheritable.}
Literal = ref object of Expression Literal = ref object of Expression
x: int x: int
PlusExpr = ref object of Expression PlusExpr = ref object of Expression

View file

@ -5,7 +5,7 @@ discard """
# Test multi methods # Test multi methods
type type
TThing = object TThing = object {.inheritable.}
TUnit = object of TThing TUnit = object of TThing
x: int x: int
TParticle = object of TThing TParticle = object of TThing

View file

@ -5,7 +5,7 @@ discard """
# Test is operator # Test is operator
type type
TMyType = object TMyType = object {.inheritable.}
len: int len: int
data: string data: string