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
{code:title=Typers.scala}
// begin adapt
tree.tpe match {
...
case _ =>
...
else if (inExprModeButNot(mode, FUNmode) && tree.symbol != null && tree.symbol.isMacro && !tree.isDef) {
val expansion = expandMacro(tree)
if (expansion.isErroneous) expansion else typed(expansion, mode, pt)
} else if ((mode & (PATTERNmode | FUNmode)) == (PATTERNmode | FUNmode)) {
...
}
}
{code}
Even if tree.exists(_.isErroneous), macro expansion logic still gets triggered by adapt. Moreover, in this case context.hasErrors is false. Is this okay?
The text was updated successfully, but these errors were encountered:
{code:title=Typers.scala}
// begin adapt
tree.tpe match {
...
case _ =>
...
else if (inExprModeButNot(mode, FUNmode) && tree.symbol != null && tree.symbol.isMacro && !tree.isDef) {
val expansion = expandMacro(tree)
if (expansion.isErroneous) expansion else typed(expansion, mode, pt)
} else if ((mode & (PATTERNmode | FUNmode)) == (PATTERNmode | FUNmode)) {
...
}
}
{code}
Even if tree.exists(_.isErroneous), macro expansion logic still gets triggered by adapt. Moreover, in this case context.hasErrors is false. Is this okay?
The text was updated successfully, but these errors were encountered: