summary refs log blame commit diff stats
path: root/tests/misc/tnoinst.nim
blob: 25ebe8dfc3bf8e739296513842c5b0a35980e9b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                  
                  








                                       
 


           
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]()