-
Notifications
You must be signed in to change notification settings - Fork 1.1k
CheckInlineConformant is too strict for -Ycheck:frontend #3971
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
Comments
gsps
added a commit
to gsps/dotty
that referenced
this issue
Feb 7, 2018
Note that this only happens on master when doing |
smarter
added a commit
to smarter/dotty
that referenced
this issue
Mar 23, 2018
Necessary for -Ycheck:frontend to work
smarter
added a commit
to smarter/dotty
that referenced
this issue
Mar 25, 2018
Necessary for -Ycheck:frontend to work
smarter
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2018
Necessary for -Ycheck:frontend to work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
crashes in
checkInlineConformant
:The problem here lies in the
isPureExpr
check returningfalse
, which seems to be specifically related to the select ofInt.MaxValue
not being considered pure. Ultimately,refPurity
of a reference to theInt
module returnIdempotent
, which makes the overall expression idempotent rather than pure.The standard settings of
-Ycheck
don't run into this crash, since they (I think) only check after some simplification on the trees has taken place, replacing the selection by a simple literal of the same constant value.The text was updated successfully, but these errors were encountered: