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








                                       
 

           
discard """
  errormsg: "instantiate 'notConcrete' explicitly"
  line: 12
  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]()