mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
made tests green again
This commit is contained in:
@@ -306,7 +306,7 @@ when isMainModule:
|
||||
testit(test7)
|
||||
|
||||
type
|
||||
TA = object
|
||||
TA {.inheritable.} = object
|
||||
TB = object of TA
|
||||
f: int
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ type
|
||||
TThreadLocalStorage = array [0..1_000, float]
|
||||
|
||||
PGcThread = ptr TGcThread
|
||||
TGcThread {.pure.} = object
|
||||
TGcThread {.pure, inheritable.} = object
|
||||
sys: TSysThread
|
||||
when emulatedThreadVars and not useStackMaskHack:
|
||||
tls: TThreadLocalStorage
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
file: "system.nim"
|
||||
line: 643
|
||||
line: 646
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
type
|
||||
TObj* = object
|
||||
TObj* = object {.inheritable.}
|
||||
|
||||
var myObj* : ref TObj
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ discard """
|
||||
# Test multi methods
|
||||
|
||||
type
|
||||
Expression = ref object
|
||||
Expression = ref object {.inheritable.}
|
||||
Literal = ref object of Expression
|
||||
x: int
|
||||
PlusExpr = ref object of Expression
|
||||
|
||||
@@ -5,7 +5,7 @@ discard """
|
||||
# Test multi methods
|
||||
|
||||
type
|
||||
TThing = object
|
||||
TThing = object {.inheritable.}
|
||||
TUnit = object of TThing
|
||||
x: int
|
||||
TParticle = object of TThing
|
||||
|
||||
@@ -5,7 +5,7 @@ discard """
|
||||
# Test is operator
|
||||
|
||||
type
|
||||
TMyType = object
|
||||
TMyType = object {.inheritable.}
|
||||
len: int
|
||||
data: string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user