Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
kt3244.kt
blob: 5109317f44c101807ec5d64756372e97455c0fc4 [
file
]
// FIR_IDENTICAL
// Should work already in M11
open
class
A
(
val s
:
String
)
class
B
(
s
:
String
)
:
A
(
s
)
fun test
(
a
:
A
):
String
?
{
if
(
a
is
B
)
{
// Earlier (14.01.2013) reported overload ambiguity over s
return
a
.
s
}
return
null
}