Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
260e8dfd39d86c4c5db834113ee010d647f3995e
/
.
/
compiler
/
testData
/
codegen
/
boxJvm
/
notNullAssertions
/
nonNullReassignmentWithFlexible.kt
blob: c346b66dc1fc335228702cf4696cfe09b6d767f9 [
file
]
// TARGET_BACKEND: JVM
// FILE: J.java
public
class
J
{
public
J getParent
()
{
return
null
;
}
}
// FILE:box.kt
fun box
():
String
{
var
j
:
J
=
J
()
try
{
j
=
j
.
parent
return
"FAIL"
}
catch
(
e
:
NullPointerException
)
{
return
"OK"
}
}