Skip to content

Commit 6e5ebce

Browse files
committed
Fix StringInterpolatorOpt unapply
1 parent 32c82b5 commit 6e5ebce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/localopt/StringInterpolatorOpt.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class StringInterpolatorOpt extends MiniPhase {
3636
def unapply(tree: Select)(implicit ctx: Context): Boolean = {
3737
tree.symbol.eq(defn.StringContextModule_apply) && {
3838
val qualifier = tree.qualifier
39-
qualifier.isInstanceOf[Ident] && qualifier.symbol.eq(defn.StringContextModule)
39+
qualifier.isInstanceOf[Select] && qualifier.symbol.eq(defn.StringContextModule)
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)