Skip to content

Commit bae5b97

Browse files
committed
type DependentTypeTree as an inferred type
1 parent d8a6751 commit bae5b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
29302930
case tree: untpd.TypedSplice => typedTypedSplice(tree)
29312931
case tree: untpd.UnApply => typedUnApply(tree, pt)
29322932
case tree: untpd.Tuple => typedTuple(tree, pt)
2933-
case tree: untpd.DependentTypeTree => completeTypeTree(untpd.TypeTree(), pt, tree)
2933+
case tree: untpd.DependentTypeTree => completeTypeTree(untpd.InferredTypeTree(), pt, tree)
29342934
case tree: untpd.InfixOp => typedInfixOp(tree, pt)
29352935
case tree: untpd.ParsedTry => typedTry(tree, pt)
29362936
case tree @ untpd.PostfixOp(qual, Ident(nme.WILDCARD)) => typedAsFunction(tree, pt)

0 commit comments

Comments
 (0)