Files
Nim/tests/misc/t16244.nim
Bung 4ea0ce9149 fix #15836 proc arg return type auto unexpectly match proc with concr… (#21065)
* fix #15836 proc arg return type auto unexpectly match proc with concrete type

* fix #16244

* add test case for #12869

(cherry picked from commit 5917c2d5b7)
2023-04-26 10:53:43 +02:00

10 lines
134 B
Nim

discard """
errormsg: "type mismatch: got <int, float64>"
line: 9
"""
proc g(): auto = 1
proc h(): auto = 1.0
var a = g() + h()