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
But Int is special because it cannot be used as the type of a variable; there is simply no way to call Int+#remainder during runtime, so the compiler should never have to instantiate this overload. (However, if remainder were a class method then it is still possible to call Int+.remainder.)
The text was updated successfully, but these errors were encountered:
The following:
fails with:
It appears that
#remainder
is instantiated with the virtual typeInt+
as the receiver. Reduced:Normally this is expected behaviour:
But
Int
is special because it cannot be used as the type of a variable; there is simply no way to callInt+#remainder
during runtime, so the compiler should never have to instantiate this overload. (However, ifremainder
were a class method then it is still possible to callInt+.remainder
.)The text was updated successfully, but these errors were encountered: