setType to Block(...)

This commit is contained in:
Eugene Yokota 2020-10-18 13:56:01 -04:00
parent a44aee9ac1
commit b62ddaa4e9
1 changed files with 2 additions and 1 deletions

View File

@ -321,7 +321,8 @@ final class ContextUtil[C <: blackbox.Context](val ctx: C) {
case _ => Some(stat)
}
}
Block(stats, super.transform(expr0))
val expr = super.transform(expr0)
Block(stats, expr).setType(expr.tpe)
case _ => super.transform(tree)
}
}