Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
smartCasts
/
smartCastInsideIf.kt
blob: 10d4a4c76c846453942710f774cbc6df696eaa48 [
file
]
class
A
(
val s
:
String
=
"FAIL"
)
private
fun foo
(
a
:
A
?,
aOther
:
A
?):
A
{
return
if
(
a
==
null
)
{
A
()
}
else
{
if
(
aOther
==
null
)
{
return
A
()
}
aOther
}
}
fun box
()
=
foo
(
A
(
"???"
),
A
(
"OK"
)).
s