summary refs log blame commit diff stats
path: root/tests/errmsgs/t5167_1.nim
blob: 9f4f208a45eb5a6bb7588af4c951cb278ca71819 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                      
discard """
errormsg: "'bar' doesn't have a concrete type, due to unspecified generic parameters."
line: 16
"""

proc foo[T]() =
  var y1 = foo[string]
  var y2 = foo[T]

proc bar[T]() =
  let x = 0

let good1 = foo[int]
let good2 = bar[int]

let err = bar