Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
67ac90ce0868ee0c9cd08d72460f16efecded549
/
.
/
compiler
/
testData
/
codegen
/
box
/
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"
}
}