File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1586,11 +1586,13 @@ class Typer extends Namer
1586
1586
val seenParents = mutable.Set [Symbol ]()
1587
1587
1588
1588
def typedParent (tree : untpd.Tree ): Tree = {
1589
- @ tailrec
1590
1589
def isTreeType (t : untpd.Tree ): Boolean = t match {
1591
- case _ : untpd.Function => true
1592
- case untpd.Parens (t1) => isTreeType(t1)
1593
- case _ => tree.isType
1590
+ case _ : untpd.Apply => false
1591
+ case _ : untpd.Select =>
1592
+ // Could be produced by parsing incomplete argument lists.
1593
+ assert(false , " Raw Select node found in constructor position" )
1594
+ false
1595
+ case _ => true
1594
1596
}
1595
1597
var result = if (isTreeType(tree)) typedType(tree)(superCtx) else typedExpr(tree)(superCtx)
1596
1598
val psym = result.tpe.dealias.typeSymbol
You can’t perform that action at this time.
0 commit comments