Files
Nim/tests/errmsgs/tunresolvedinnerproc.nim
metagn 0a212f97a5 properly disallow unresolved generic proc values (#22005)
* properly disallow unresolved generic proc values

* mirrors semoperand

* shallow efTypeAllowed, add back special case
2023-06-05 10:53:40 +02:00

11 lines
258 B
Nim

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 #[tt.Error
^ 'notConcrete' doesn't have a concrete type, due to unspecified generic parameters.]#
wrap[int]()