Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion plugin/src/main/scala/plugin/CustomControlPhase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,10 @@ class CustomControlPhase(setting: Setting) extends CommonPhase:
rhs match
case Apply(_, List(Apply(_, List(Typed(SeqLiteral(elems, _), _))))) =>
Some(elems)
case _ => None
case TypeApply(sym @ Select(sel, _), _) if sym.symbol == defn.Any_isInstanceOf =>
unapply(sel)
case _ =>
None
end SI
object Struct:
def unapply(arg: UnApply)(using Context): Option[(Type, List[Tree])] =
Expand Down