We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34711c2 commit f6ff366Copy full SHA for f6ff366
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -43,7 +43,6 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
43
44
def Apply(fn: Tree, args: List[Tree])(implicit ctx: Context): Apply = {
45
assert(!fn.isInstanceOf[Block])
46
- assert(!fn.isInstanceOf[If])
47
ta.assignType(untpd.Apply(fn, args), fn, args)
48
}
49
0 commit comments