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
In the following code, which compiles successfully in 2.11.2 but not in 2.11.4, the definitions run2 and run3 fail to compile with the type errors that follow.
NestedCov.scala:22: error during expansion of thismatch (this is a scalac bug).
The underlying error was: typemismatch;
found : test.nestedcov.Outer2[test.nestedcov.Inner2[AwithA],AwithA]
required: test.nestedcov.Outer2[test.nestedcov.Inner2[?A3with?A2],?A3with?A2] where type?A2<:A (this is a GADT skolem), type?A3<:A (this is a GADT skolem)
defrun2[A](nc: Outer2[A, A]) = nc match {
^
NestedCov.scala:27: error during expansion of thismatch (this is a scalac bug).
The underlying error was: typemismatch;
found : test.nestedcov.Outer3[AwithA,AwithA]
required: test.nestedcov.Outer3[?A5with?A4,?A5with?A4] where type?A4<:A (this is a GADT skolem), type?A5<:A (this is a GADT skolem)
defrun3[A](nc: Outer3[A, A]) = nc match {
^
two errors found
The text was updated successfully, but these errors were encountered:
Stephen Compall (s11001001) said:
This was discovered while compiling expressions like these, analogous to the ascriptions of expr above, in matches on LetR and similar classes, analogous to Let2 above, in the Scala Ermine implementation.
Thanks for the bug report! If you wish, you could submit ermine-core-scala to our community build so that it would be automatically part of our regression tests. https://github.com/scala/community-builds/pulls
In the following code, which compiles successfully in 2.11.2 but not in 2.11.4, the definitions run2 and run3 fail to compile with the type errors that follow.
Failing with
The text was updated successfully, but these errors were encountered: