make tests green again
This commit is contained in:
parent
c38a608c90
commit
9364369c1f
9 changed files with 34 additions and 25 deletions
|
|
@ -9,8 +9,8 @@ proc noret1*(i: int) {.noreturn.} =
|
|||
proc noret2*(i: int): void {.noreturn.} =
|
||||
echo i
|
||||
|
||||
noret1(1)
|
||||
noret2(2)
|
||||
if true: noret1(1)
|
||||
if true: noret2(2)
|
||||
|
||||
var p {.used.}: proc(i: int): int
|
||||
doAssert(not compiles(
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ echo callWithFoo(0)
|
|||
echo(CA+CD)
|
||||
echo useTypes(TA(x:TB(x:1)), 2)
|
||||
second(0)
|
||||
|
||||
|
||||
template callWithFoo(arg: untyped): untyped =
|
||||
foo(arg)
|
||||
|
||||
|
||||
proc first(i: int): void
|
||||
|
||||
proc second(i: int): void =
|
||||
|
|
@ -35,7 +35,7 @@ type
|
|||
type
|
||||
TCyclicA = ref object
|
||||
x: TDoubleCyclic
|
||||
|
||||
|
||||
type
|
||||
TCyclicB = ref object
|
||||
x: TDoubleCyclic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue