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
tree.unseal.underlyingArgument.seal match {
case vv @'{ ($s: Trait).fun($arg) } => arg
}
When invoking the macro with the Companion as an import:
importCompanion._
mac(fun("blah"))
The following compiler error occurs:
Exception occurred while executing macro expansion.
java.lang.ClassCastException: scala.Tuple1 cannot be cast to scala.Tuple2
at companionbug.Macro$.macImpl(Macro.scala:16)
Expectation
The code should compile and the match should work.