Here's the source for the IR dump above: ```data c...
# pattern-matching
m
Here's the source for the IR dump above:
Copy code
data class Person(val firstName: String, val lastName: String)
val person = Person("Matt", "Moore")

fun case(arg: Any?): Any? = arg

val result = when (person) {
  case(Person("Matt", "Moore")) -> "Matched"
  else -> "Not matched"
}