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
[error] -- [E007] TypeMismatchError
[error] 11|defbar[T] = _bar.asInstanceOf[T=>T]
[error] |^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |Found:T=>T
[error] |Required:T=>T
[error] |
[error] |Note that the expected typeT=>T
[error] | is the previously inferred result typeof method bar
[error] | which is also the typeseen in separately compiled sources.
[error] |Thenew inferred typeT=>T
[error] | must conform to thistype.
Expectation
The type mismatch seems to be caused by some hidden difference in the types which is not being reported in the error. The error message should show this difference.
The text was updated successfully, but these errors were encountered:
Compiler version
3.7.0-RC1
Minimized code
If we change this line it compiles fine:
It also compiles fine if we disable capture checking (i.e. remove the captureChecking import).
Minimized from Future
Output
Expectation
The type mismatch seems to be caused by some hidden difference in the types which is not being reported in the error. The error message should show this difference.
The text was updated successfully, but these errors were encountered: