Skip to content

Commit 2b642b2

Browse files
oderskyWojciechMazur
authored andcommitted
Drop redundant ConstFold
[Cherry-picked 1b61ed6]
1 parent 448f048 commit 2b642b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -1172,8 +1172,7 @@ trait Applications extends Compatibility {
11721172
case _ => tree.withType(TryDynamicCallType)
11731173
}
11741174
if (typedFn.tpe eq TryDynamicCallType) tryDynamicTypeApply()
1175-
else
1176-
ConstFold(assignType(cpy.TypeApply(tree)(typedFn, typedArgs), typedFn, typedArgs))
1175+
else assignType(cpy.TypeApply(tree)(typedFn, typedArgs), typedFn, typedArgs)
11771176
}
11781177
}
11791178

0 commit comments

Comments
 (0)