-
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
Pattern binding using abstract type unapply
gets wider type when @unchecked
#14821
Comments
griggt
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Apr 1, 2022
KacperFKorban
added
area:typer
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Apr 1, 2022
It seems to be related to TypeTest's logic. |
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 6, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 7, 2022
griggt
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 10, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 16, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 17, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 17, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 17, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 17, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
Apr 20, 2022
michelou
pushed a commit
to michelou/dotty
that referenced
this issue
Apr 25, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
May 10, 2022
griggt
added a commit
to griggt/dotty
that referenced
this issue
May 11, 2022
bishabosha
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Oct 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.1.2-RC3 and 3.1.3-RC1-bin-SNAPSHOT-git-616308d
Minimized code
Output
Expectation
Without the
@unchecked
annotation,constructor
is typed asDefDef
, I expected the same here.It compiles without the TypeTest given (but emits a type test warning instead).
Context: this arose while rebasing #14294 on latest main;
@unchecked
was added (as per advice) tohttps://github.com/lampepfl/dotty/blob/616308d34912f1a42bee256bf77b85db3194c46b/library/src/scala/quoted/Quotes.scala#L4716
to suppress the refutable pattern warning, but instead caused the above error and a failure to bootstrap.
The text was updated successfully, but these errors were encountered: