Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
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"
}
}