-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-module match type regression in 3.3.2 #18261
Labels
Comments
soronpo
added
itype:bug
area:match-types
regression
This worked in a previous version but doesn't anymore
labels
Jul 21, 2023
First bad commit: 8aec1d1 |
A minor change to the minimized example causes the issue to resurface. main/DFBits.scala trait DFBits[W <: Int]
trait Candidate[R]:
type OutW <: Int
object Candidate:
given [W <: Int, R <: Foo[DFBits[W], VAL]]: Candidate[R] with
type OutW = W main/Foo.scala trait VAL
type Foo[T, M] = M match
case VAL => T test/Test.scala def baz[L](lhs: L)(using icL: Candidate[L]): DFBits[Int] = ???
object Test:
val x: DFBits[8] = ???
val z: DFBits[Int] = baz(x)
summon[Candidate[z.type]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
This compilation error requires multi-module and multi-file to trigger.
Compiler version
Last good release:
3.3.2-RC1-bin-20230630-c629090-NIGHTLY
First bad release:
3.3.2-RC1-bin-20230703-0a21ecf-NIGHTLY
Minimized code
See minimized project at: https://github.com/soronpo/dottybug/tree/matchtypebug
main/DFBits.scala
main/Foo.scala
test/Test.scala
Output
Expectation
No error.
The text was updated successfully, but these errors were encountered: