Crazy compiler bug... this code, with the `@Suppre...
# announcements
r
Crazy compiler bug... this code, with the
@Suppress
annotation results in a
ClassCastException
, and without it runs without an error:
Copy code
fun main(args: Array<String>) {
  fun <T> foo(block: () -> T): T = block()
  @Suppress("ConstantConditionIf")
  if (true) foo { "foo" }
}