Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
resolve
/
regressions
/
kt300.resolve
blob: aaaf340f3a7ac3f22a00c2394b7f81272b2691ba [
file
] [
log
] [
blame
]
// KT-300 Overload ambiguity while accessing range
class
MyRange
()
:
Range
<
Int
>
{
~
in
~
override
fun contains
(
item
:
Int
)
=
true
}
fun foo
(
x
:
Int
?,
range
:
MyRange
)
{
x
`in`
in
range
// Int? found, but Int expected
}