mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* fix #15836 proc arg return type auto unexpectly match proc with concrete type * fix #16244 * add test case for #12869
10 lines
134 B
Nim
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()
|