Cannot create impure partial functions with scala2-library-cc
#23225
Labels
area:experimental:cc
Capture checking related
area:scala2-library-tasty
Any issue generaing or using the Scala 2 library TASTy
itype:bug
Compiler version
Latest
main
Minimized code
Output
This is due to
AbstractPartialFunction
being declared with aself =>
, which assumes a pure self type:Since
AbstractPartialFunction
isspecialized
, not sure if we can override this inscala2-library-cc
Tasty.Expectation
Should compile.
The text was updated successfully, but these errors were encountered: