This commit is contained in:
parent
c52a2c3ab0
commit
e58c2d261c
3 changed files with 32 additions and 7 deletions
|
|
@ -2,6 +2,8 @@ discard """
|
|||
output: '''
|
||||
100
|
||||
0
|
||||
float32
|
||||
float32
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -110,3 +112,15 @@ block tgeneric4:
|
|||
newSeq result.free, 0
|
||||
|
||||
var x = newIDGen[int]()
|
||||
|
||||
block tgeneric5:
|
||||
# bug #12528
|
||||
proc foo[T](a: T; b: T) =
|
||||
echo T
|
||||
|
||||
foo(0.0'f32, 0.0)
|
||||
|
||||
proc bar[T](a: T; b: T = 0.0) =
|
||||
echo T
|
||||
|
||||
bar(0.0'f32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue