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
I found two new problems after the fixes in #7835 for the previous issue #7807; opening a new issue here for @OlivierBlanvillain to fix, as suggested by @odersky.
minimized code
objectTest2withtypeFlip[N<:0|1] <:0|1=Nmatch { case0=>1case1=>0 }
defflip: (x: 0|1) =>Flip[x.type] =???
flip(0):1// ! does not type check
flip(1):0objectTest3withtypeFlip[N<:0|1] <:0|1=Nmatch { case0=>1case1=>0 }
defflip(x: 0|1):Flip[x.type] =???
flip(0):1// ! causes: pickling difference for module class Test2$ in tests/pos/i7807.scala
flip(1):0
I futher minimised the type checking issue to #8128, which doesn't involve match types. The pickling issue is probably a duplicate of the ones we already have in pos-test-pickling.blacklist
I found two new problems after the fixes in #7835 for the previous issue #7807; opening a new issue here for @OlivierBlanvillain to fix, as suggested by @odersky.
minimized code
Note that the following works:
The text was updated successfully, but these errors were encountered: