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
Dependent function types are expressed as refinements over regular function types.
These refinements need to be compared with the standard arrow rule for function
subtyping. But comparison of method refinements so far demanded equal parameter
types.
The solution is tricky since refined types lead to selections via reflection
still cannot tolerate differing parameter types since reflexive method dispatch
uses precise parameter types. That's why we apply standard arrow rule only
for refinements where the refined method exists in the underlying class.
Fixesscala#12211
0 commit comments