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
There is a bug with automatic casting of symbols to enum values when using named arguments defined in multiple overloads of a method.
Reproducible example:
enumFooFOOenddeffoo(unused, foo : Foo)
enddeffoo(foo : Foo)
end
foo(foo::FOO) # ambiguous call, implicit cast of :FOO matches all of Foo
The logic is incorrect, it only works if there are no named arguments and all the defs that match the signature, ignoring type restrictions, is not well computed. Someone should fix that logic and it will start working well... I think. But I don't have time to tackle this.
The text was updated successfully, but these errors were encountered:
@straight-shoota I can work on this, the output from the shared example should be the execution of method def foo(foo : Foo) without raising any error?
There is a bug with automatic casting of symbols to enum values when using named arguments defined in multiple overloads of a method.
Reproducible example:
https://carc.in/#/r/6k06
Citing @asterite from #6314 (comment) :
The text was updated successfully, but these errors were encountered: