mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
18 lines
254 B
Nim
18 lines
254 B
Nim
discard """
|
|
line: 12
|
|
errormsg: "instantiate 'notConcrete' explicitly"
|
|
disabled: "true"
|
|
"""
|
|
|
|
proc wrap[T]() =
|
|
proc notConcrete[T](x, y: int): int =
|
|
var dummy: T
|
|
result = x - y
|
|
|
|
var x: proc (x, y: T): int
|
|
x = notConcrete
|
|
|
|
|
|
wrap[int]()
|
|
|