Closed japgolly closed 3 years ago
This was probably fixed in #11591
The problem still persists with Scala 3.0.0-RC2-bin-20210317-758782a-NIGHTLY
so #11591 doesn't seem to have fixed this.
@japgolly could you minimize it?
Shouldn’t you import japgolly.microlibs.testutil.TestUtil.given
?
@julienrf Shouldn't have to with -source:3.0-migration
. I'm trying to cross-compile code for Scala 2 and Scala 3.
Are you sure this is supposed to work? When I grep for scalazEqualFromUnivEq
in the branch you linked to I get:
test-util/shared/src/main/scala/japgolly/microlibs/testutil/TestUtil.scala
4:import japgolly.univeq.UnivEqScalaz.scalazEqualFromUnivEq
stdlib-ext/shared/src/test/scala/japgolly/microlibs/stdlib_ext/ExtractorsTest.scala
7:val x = japgolly.microlibs.testutil.TestUtil.scalazEqualFromUnivEq[Int]
8:val y = scalazEqualFromUnivEq[Int]
So TestUtil isn't defining scalazEqualFromUnivEq.
Ah I'm so sorry for dropping the ball on this one. I raised over 100 tickets at that time and this one dropped through my fingers. I'll get back on this next week.
Tried again with 3.0.0 final and this works now
I was going to comment yesterday that I also tried the example project successfully. I didn't get around to clarifying anything because I was lost in the gollyverse, which is bigger on the inside than it looks from without.
To pick up the ball metaphor, the previous discussion is like golf when one goes missing.
Compiler version
3.0.0-RC1
Minimized code
Here I'm importing my
TestUtil._
butTestUtil.scalazEqualFromUnivEq
isn't importing:Output
Expectation
It should compile.
Reproduction