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
The println surrounding the toStr() is crucial. You didn't provide it in minimized example but right now I see it in your compiler log.
I agree, it fails on 3.1.2. Still, it doesn't on newest nightly.
EDIT:
To be sure, I tested in on both scala-cli and sbt, and for the fact got sometimes compilation error on 3.1.2 but it might be related to incremental compilation. Making a clean build always succeeds on 3.1.2 and newest nightly.
The println surrounding the toStr() is crucial. You didn't provide it in minimized example but right now I see it in your compiler log.
I agree, it fails on 3.1.2. Still, it doesn't on newest nightly.
EDIT: To be sure, I tested in on both scala-cli and sbt, and for the fact got sometimes compilation error on 3.1.2 but it might be related to incremental compilation. Making a clean build always succeeds on 3.1.2 and newest nightly.
Could you try to verify that?
Oh, it works with sbt clean compile, tks, i'll close this issue
Activity
pikinier20 commentedon Apr 26, 2022
Log from scala-cli:
Seems like this bug has been fixed already. Interestingly, on my side it compiled on 3.1.2 but didn't compile on 3.1.1
pikinier20 commentedon Apr 26, 2022
3.1.2 introduced #14051 which most likely fixed the bug
liewhite commentedon Apr 26, 2022
I use sbt, i'm sure scala version is 3.1.2.
build.sbt
sbt compile command output:
pikinier20 commentedon Apr 26, 2022
Theprintln
surrounding thetoStr()
is crucial. You didn't provide it in minimized example but right now I see it in your compiler log.I agree, it fails on 3.1.2. Still, it doesn't on newest nightly.EDIT:
To be sure, I tested in on both scala-cli and sbt, and for the fact got sometimes compilation error on 3.1.2 but it might be related to incremental compilation. Making a clean build always succeeds on 3.1.2 and newest nightly.
Could you try to verify that?
liewhite commentedon Apr 26, 2022
Oh, it works with
sbt clean compile
, tks, i'll close this issuepikinier20 commentedon Apr 26, 2022
I think we can reopen that as a bug in incremental compilation. It doesn't work very well with exports.
Probably this issue is related to: #11841 .
export
#201673 remaining items