Skip to content

Commit 1b61ed6

Browse files
committed
Drop redundant ConstFold
1 parent 235c047 commit 1b61ed6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,8 +1190,7 @@ trait Applications extends Compatibility {
11901190
case _ => tree.withType(TryDynamicCallType)
11911191
}
11921192
if (typedFn.tpe eq TryDynamicCallType) tryDynamicTypeApply()
1193-
else
1194-
ConstFold(assignType(cpy.TypeApply(tree)(typedFn, typedArgs), typedFn, typedArgs))
1193+
else assignType(cpy.TypeApply(tree)(typedFn, typedArgs), typedFn, typedArgs)
11951194
}
11961195
}
11971196

0 commit comments

Comments
 (0)