Here is a test input that does not compile: ``` d...
# getting-started
r
Here is a test input that does not compile:
Copy code
data class Foo(val a: String)

fun main(args: Array<String>) {
  val s = "a"
  val f: () -> String = when(s) {
    is String -> {
      val (a) = Foo("bar")
      { -> a }
    }
    else -> throw IllegalArgumentException("Unknown input: $s")
  }
  println(f.invoke())
}