tunresolvedinnerproc.nim 258 B

1234567891011
  1. proc wrap[T]() =
  2. proc notConcrete[T](x, y: int): int =
  3. var dummy: T
  4. result = x - y
  5. var x: proc (x, y: T): int
  6. x = notConcrete #[tt.Error
  7. ^ 'notConcrete' doesn't have a concrete type, due to unspecified generic parameters.]#
  8. wrap[int]()