Files
Nim/tests/errmsgs/tnested_generic_instantiation.nim
2018-08-28 15:41:55 +02:00

20 lines
281 B
Nim

discard """
errormsg: "generic instantiation too nested"
file: "system.nim"
"""
# bug #4766
type
Plain = ref object
discard
Wrapped[T] = object
value: T
converter toWrapped[T](value: T): Wrapped[T] =
Wrapped[T](value: value)
let result = Plain()
discard $result