File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
compiler/src/dotty/tools/dotc/transform/sjs Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -646,12 +646,8 @@ class ExplicitJSClasses extends MiniPhase with InfoTransformer { thisPhase =>
646
646
* In this phase, `transformApply`, `transformTypeApply` and `transformSelect`
647
647
* must only operate on fully applied selections and applications.
648
648
*/
649
- private def isFullyApplied (tree : Tree )(using Context ): Boolean = {
650
- tree.tpe.widenTermRefExpr match {
651
- case _:PolyType | _:MethodType => false
652
- case _ => true
653
- }
654
- }
649
+ private def isFullyApplied (tree : Tree )(using Context ): Boolean =
650
+ ! tree.tpe.widenTermRefExpr.isInstanceOf [MethodOrPoly ]
655
651
656
652
/** Wraps `super` calls to inner and local JS classes with
657
653
* `withContextualJSClassValue`, to preserve a reified reference to the
You can’t perform that action at this time.
0 commit comments