summary refs log tree commit diff stats
path: root/tests/stdlib/tregex.nim
Commit message (Expand)AuthorAgeFilesLines
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-20/+20
* new tester; all tests cate
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]()