blob: 42b629b90a075b93575cd0a8ab4d6cf352cd47c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test {
inline val x = true
val y = if (x) 1 else 2 // reduced to val y = 1
def main(args: Array[String]): Unit =
if ({ println("hi"); true }) // cannot be reduced
1
else
2
}
|