made tests green again
This commit is contained in:
parent
d17caa86e8
commit
8a92e95ccf
7 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
file: "system.nim"
|
file: "system.nim"
|
||||||
line: 643
|
line: 646
|
||||||
errormsg: "type mismatch"
|
errormsg: "type mismatch"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
type
|
type
|
||||||
TObj* = object
|
TObj* = object {.inheritable.}
|
||||||
|
|
||||||
var myObj* : ref TObj
|
var myObj* : ref TObj
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue