[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// !LANGUAGE: +VariableDeclarationInWhenSubject
|
||||
|
||||
fun test(x: Any?) =
|
||||
when (val y = x) {
|
||||
is String -> "String, length = ${y.length}"
|
||||
null -> "Null"
|
||||
else -> "Any, hashCode = ${y.hashCode()}"
|
||||
}
|
||||
Reference in New Issue
Block a user