mirror of https://github.com/sbt/sbt.git
setType to Block(...)
This commit is contained in:
parent
a44aee9ac1
commit
b62ddaa4e9
|
|
@ -321,7 +321,8 @@ final class ContextUtil[C <: blackbox.Context](val ctx: C) {
|
||||||
case _ => Some(stat)
|
case _ => Some(stat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Block(stats, super.transform(expr0))
|
val expr = super.transform(expr0)
|
||||||
|
Block(stats, expr).setType(expr.tpe)
|
||||||
case _ => super.transform(tree)
|
case _ => super.transform(tree)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue