blob: d98feaa14102f088e05ce4acdb970b4ec587eb08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
discard """
action: reject
errormsg: "type mismatch: got <float64> but expected 'typeof(U(0.000001))'"
line: 8
column: 22
"""
proc foo*[U](x: U = U(1e-6)) =
echo x
foo[float]()
foo()
|