* fix #15836 proc arg return type auto unexpectly match proc with concrete type * fix #16244 * add test case for #12869
This commit is contained in:
parent
3812d91390
commit
5917c2d5b7
12 changed files with 74 additions and 12 deletions
9
tests/misc/t16244.nim
Normal file
9
tests/misc/t16244.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <int, float64>"
|
||||
line: 9
|
||||
"""
|
||||
|
||||
proc g(): auto = 1
|
||||
proc h(): auto = 1.0
|
||||
|
||||
var a = g() + h()
|
||||
Loading…
Add table
Add a link
Reference in a new issue