Making case class constructor package-private crashes the compiler when there's a circular dependency #19526
Labels
area:inline
area:metaprogramming:quotes
Issues related to quotes and splices
itype:bug
itype:crash
regression
This worked in a previous version but doesn't anymore
Milestone
Compiler version
3.3.1
Minimized code
This caused by a circular reference between stack.scala (the trait StackFactory references Export) and macro.scala. If the trait is moved to another file this example compiles (and that's the workaround).
3 files, same directory, scala-cli setup:
package.scala
//> using scala 3.3.1
stack.scala
macro.scala
Output (click arrow to expand)
scala-cli compile --server=false .
The text was updated successfully, but these errors were encountered: