-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #10085: check if enum case confirms to scrutinee type #10094
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
Conversation
test performance please |
performance test scheduled: 6 job(s) in queue, 1 running. |
Performance test finished successfully: Visit http://dotty-bench.epfl.ch/10094/ to see the changes. Benchmarks is based on merging with master (22c23a5) |
The latest commit in this PR is:
|
You can try
Good catch, it's now added. |
I think that runs the same set of tests, anyway I tried it and I still don't get any error on commit 149d4de, (I do get an error for i9190 if I add it manually, but nothing for i4227) |
For // force type inference to infer a narrower type: could be singleton
// see tests/patmat/i4227.scala
mt.paramInfos(0) <:< scrutineeTp The code was there just to make type inference infer a singleton type. |
I see, thanks. I was surprised that |
Thanks for going deep into the issue. Once that's merged, I'll rebase and drop the 2nd commit for now. |
Done. |
Thanks, I also pushed some simplifications from the 2nd commit in 6a9c4ea. |
Fix #10085: check if enum case confirms to scrutinee type
Fix #9190: infer union types