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
typeIntLike[T] <:Boolean=TmatchcaseInt=>true@annotation.implicitNotFound("Comparing ${T} to Int")
typeIsIntLike[T] =IntLike[T] =:=truetypeIndirection[A] =IsIntLike[A] & (true=:=true) // something after & is needed for reproductiondeff[Z](usingIndirection[Z]):Unit= ()
@main defmain():Unit= f[Double]
Output
[error] -- [E172] TypeError:Main.scala:7:34
[error] 7|@main defmain():Unit= f[Double]
[error] |^
[error] |ComparingA to Int
[error] one error found
Expectation
This is supposed to not compile, the problem is with the error message. The custom error message prints A which is the parameter name from Indirection instead of its value Double.
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.2
Minimized code
Output
Expectation
This is supposed to not compile, the problem is with the error message. The custom error message prints
A
which is the parameter name fromIndirection
instead of its valueDouble
.The text was updated successfully, but these errors were encountered: