Files
Nim/tests/generics/tprevent_double_bind.nim
ringabout 5602183234 'lock levels' are deprecated, now a noop (#20539)
* 'lock levels' are deprecated, now a noop

* fixes tests
2022-10-11 09:17:09 +02:00

22 lines
383 B
Nim

discard """
errormsg: "type mismatch: got <TT[seq[string]], proc (v: int){.gcsafe.}>"
line: 20
"""
# bug #6732
import typetraits
type
TT[T] = ref object of RootObj
val: T
CB[T] = proc (v: T)
proc testGeneric[T](val: TT[T], cb: CB[T]) =
echo val.type.name
echo $val.val
var tt = new(TT[seq[string]])
echo tt.type.name
tt.testGeneric( proc (v: int) =
echo $v )