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
This is an adaptation of the example in Scala SI 4731.scala. The issue is in response to scala/scala3#3989. The fix for #3989 broke the test case pos/t4731.scala, and investigation showed that the flagged inheritance is unsound.
The text was updated successfully, but these errors were encountered:
Currently I created some conflicting refinement type intentionally, in order to mimic the type variance behavior of intersection types.
Stricter type checking on conflicting types may be sound, however it will break existing code.
I hope this bug will not be fixed until introducing true intersection types.
smarter
added
the
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
label
Oct 19, 2018
The following program compiles under 2.12.3 but gives a ClassCastException at runtime.
This is an adaptation of the example in Scala SI 4731.scala. The issue is in response to scala/scala3#3989. The fix for #3989 broke the test case
pos/t4731.scala
, and investigation showed that the flagged inheritance is unsound.The text was updated successfully, but these errors were encountered: