Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "An object will never work if native is expected" (#4829)
This reverts commit 73d5e74. That commit turned out to be incorrect. For more background see #4823 My reasoning back then was that a compile time error would be a good thing to have. But firstly, I didn't consider that the error message could be inappropriate, talking about Mu in examples like this: $ raku -e 'multi f(int $i) { $i + $i }; my $a = 2; say f $a' ===SORRY!=== Error while compiling -e Calling foo(Mu) will never work with any of these multi signatures: (int $i) [...] But even worse: There are cases where the types *could* match at runtime, like here (should print "4"): $ raku -e 'multi f(int $i) { $i + $i }; my $a = 3; my int $b = 2; $a := $b; say f $a'
- Loading branch information