summary refs log tree commit diff stats
path: root/tests/misc/tnoinst.nim
blob: 4c8d9d1aa09f8630ede766d3c8af1eab37daf86b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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]()