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
File 1 and 2 compiles just fine when you compile them both, e.g. when doing clean and compile in SBT. However, doing any irrelevant change in file 1 (like adding a comment or whitespace) without touching file 2 and recompiling with SBT will result in the compilation failure above at val y since TypeParameterFromInference extends TraitWithTypeParameter using type inference. In comparison, the compiler never have any problem with val x.
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.3
Minimized code
File 1:
File 2:
Output
Expectation
File 1 and 2 compiles just fine when you compile them both, e.g. when doing
clean
andcompile
in SBT. However, doing any irrelevant change in file 1 (like adding a comment or whitespace) without touching file 2 and recompiling with SBT will result in the compilation failure above atval y
sinceTypeParameterFromInference
extendsTraitWithTypeParameter
using type inference. In comparison, the compiler never have any problem withval x
.The text was updated successfully, but these errors were encountered: