tests are green again
This commit is contained in:
parent
3091bc4958
commit
5c94a9e1ae
11 changed files with 23 additions and 558 deletions
|
|
@ -11,7 +11,7 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1
|
|||
|
||||
# in Nimrod proc (x: TB) is compatible to proc (x: TA),
|
||||
# but this is not type safe:
|
||||
var f: proc (x: var TA) = bp
|
||||
var f = cast[proc (x: var TA)](bp)
|
||||
var a: TA
|
||||
f(a) # bp expects a TB, but gets a TA
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue