scalamacros / paradise

(No longer actively maintained.)
http://scalamacros.org/
BSD 3-Clause "New" or "Revised" License
158 stars 53 forks source link

Upgrade to Scala 2.13.0-M4 #115

Closed julienrf closed 6 years ago

julienrf commented 6 years ago

It seems that apart from the /: operator that has been deprecated no other change is required to make macro paradise plugin compile.

That being said, I’m having the following compiler crash when trying to compile the tests:

[error] 
[error]   last tree to typer: TypeTree(trait Product)
[error]        tree position: line 8 of /home/julien/workspace/dev/scalamacros/paradise/tests/src/test/scala/run/Multiple.scala
[error]             tree tpe: Product
[error]               symbol: abstract trait Product in package scala
[error]    symbol definition: abstract trait Product extends Any with Equals (a ClassSymbol)
[error]       symbol package: scala
[error]        symbol owners: trait Product
[error]            call site: object DD in class Multiple in package <empty>
[error] 
[error] == Source file context for tree position ==
[error] 
[error]      5 
[error]      6 @RunWith(classOf[JUnit4])
[error]      7 class Multiple {
[error]      8   @doubler @doubler case object D
[error]      9 
[error]     10   @Test
[error]     11   def multiple: Unit = {

I’m not sure where to look for? Could it be due to a regression in the new collections?

Also: should I create a 2.13.0-M4 branch here? What should its parent branch be?

adriaanm commented 6 years ago

Thanks, @julienrf! I'm looking into it.

adriaanm commented 6 years ago

I didn't manage to make much progress this afternoon, but it does look like it's related to the collections. I added a few commits to the 2.13.x branch to document. Will have to postpone further investigations until after Scala Days.