Stub code suggestion in missing method error message should use type parameters of present class, not parent trait #13076
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
itype:bug
Spree
Suitable for a future Spree
Milestone
Compiler version
3.0.1 (and I've noticed this is earlier versions as well)
Minimized code
Output
Expectation
The error is obviously valid, but the suggested code is incorrect:
C
's type variables areX
andY
, notA
andB
.Bonus whine: the issue "goes away" if the trait only contains one of the two methods, because when it's just one missing method, there is no suggested stub code. It would be nice to get the stub code in those cases anyway!
The text was updated successfully, but these errors were encountered: