We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54fab4d commit 2732c6bCopy full SHA for 2732c6b
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1593,11 +1593,9 @@ class Typer extends Namer
1593
val seenParents = mutable.Set[Symbol]()
1594
1595
def typedParent(tree: untpd.Tree): Tree = {
1596
- @tailrec
1597
def isTreeType(t: untpd.Tree): Boolean = t match {
1598
- case _: untpd.Function => true
1599
- case untpd.Parens(t1) => isTreeType(t1)
1600
- case _ => tree.isType
+ case _: untpd.Apply => false
+ case _ => true
1601
}
1602
var result = if (isTreeType(tree)) typedType(tree)(superCtx) else typedExpr(tree)(superCtx)
1603
val psym = result.tpe.dealias.typeSymbol
0 commit comments