Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
funcLiteralArgsInsideAmbiguity.fir.kt
blob: b5a286c1d3010314980195aacbffc59602592241 [
file
]
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
package
d
fun bar
()
{
val i
:
Int
?
=
42
if
(
i
!=
null
)
{
<!
OVERLOAD_RESOLUTION_AMBIGUITY
!>
doSmth1
<!>
{
val x
=
i
+
1
}
}
}
fun doSmth1
(
f
:
()->
Unit
)
{}
fun doSmth1
(
g
:
(
Int
)->
Unit
)
{}