Skip to content

Commit f6ff366

Browse files
authored
Remove check for If as it's impossible
1 parent 34711c2 commit f6ff366

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
4343

4444
def Apply(fn: Tree, args: List[Tree])(implicit ctx: Context): Apply = {
4545
assert(!fn.isInstanceOf[Block])
46-
assert(!fn.isInstanceOf[If])
4746
ta.assignType(untpd.Apply(fn, args), fn, args)
4847
}
4948

0 commit comments

Comments
 (0)