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
When this example is defined in a regular code, it works fine.
When used inside of a macro implementation, it causes StackOverflow.
Workaround is to replace case N with case N() or replace enum with a sealed trait hierarchy.
The text was updated successfully, but these errors were encountered:
scala> someMacro
1|someMacro
|^^^^^^^^^|Exception occurred while executing macro expansion.
|java.lang.StackOverflowError||This location contains code that was inlined from rs$line$4:1
Minimized code
Output
Expectation
When this example is defined in a regular code, it works fine.
When used inside of a macro implementation, it causes StackOverflow.
Workaround is to replace
case N
withcase N()
or replaceenum
with a sealed trait hierarchy.The text was updated successfully, but these errors were encountered: