Skip to content
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

assertion failed: duplicate type F#7718; previous was type F#7369 (using Scala 2 published cats-effect) #11984

Closed
scf37 opened this issue Apr 4, 2021 · 2 comments · Fixed by #12120

Comments

@scf37
Copy link

scf37 commented Apr 4, 2021

Compiler version

3.0.0-RC1 and 3.0.0-RC2

Minimized code & Output

https://scastie.scala-lang.org/EzwUElRQS2uavuyN6TU4ow

Another one:
https://scastie.scala-lang.org/Kx6GbNFJRPenigB5LiOdxg

Expectation

Successful compilation

@scf37 scf37 added the itype:bug label Apr 4, 2021
@griggt
Copy link
Collaborator

griggt commented Apr 5, 2021

Both examples seem to work fine when depending on the Scala 3 published cats-effect artifact instead of using .withDottyCompat to get the Scala 2 artifact.


Aside: is there some reason that Scastie uses Scala 2 libraries and .withDottyCompat in Scala 3 build mode, even when Scala 3 published versions are available? This doesn't always work and can be quite confusing, as seen here and in this recent issue on gitter re: ScalaTest: https://gitter.im/lampepfl/dotty?at=6067745692a3431fd66fa63b

@griggt griggt changed the title assertion failed: duplicate type F#7718; previous was type F#7369 assertion failed: duplicate type F#7718; previous was type F#7369 (using Scala 2 published cats-effect) Apr 5, 2021
@griggt
Copy link
Collaborator

griggt commented Apr 5, 2021

Duplicate of #11173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants