We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7f5bf9 + 8238c8e commit 34b98f3Copy full SHA for 34b98f3
compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala
@@ -120,6 +120,8 @@ object ErrorReporting {
120
val expected1 = dropJavaMethod(expected)
121
if ((found1 eq found) != (expected eq expected1) && (found1 <:< expected1))
122
"\n (Note that Scala's and Java's representation of this type differs)"
123
+ else if (found.topType != expected.topType)
124
+ "\n (Note that the types are in different universes, see Phantom types)"
125
else if (ctx.settings.explainTypes.value)
126
"\n" + ctx.typerState.show + "\n" + TypeComparer.explained((found <:< expected)(_))
127
else
0 commit comments