You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-14242 Type-checking incorrect when local function and variable share the same name
Issue Description:
funcg(_f: () -> ()) {
funcf(_x: Int) {}
f() // okayf(10) // error: argument passed to call that takes no arguments
}
This is not right. I think the correct behavior here would be to have the first call not compile and have the second call compile. That is what you would get if you instead had
funcg(_f: () -> ()) {
letf = { (x: Int) in () }
f() // error: missing argument for parameter #​1 in callf(10) // okay
}
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 7c03e3d2a0ccfe87deedce1a98b39190
duplicates:
relates to:
Issue Description:
This is not right. I think the correct behavior here would be to have the first call not compile and have the second call compile. That is what you would get if you instead had
The text was updated successfully, but these errors were encountered: