Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
funInterface
/
kt79092-sam.kt
blob: 93141211e637f65cd29636d37a718531b876b84d [
file
]
// FILE: A.kt
fun
interface
I
{
fun test
(
x
:
Int
=
10
,
y
:
Int
=
20
)
=
process
(
x
+
y
)
fun process
(
a
:
Int
)
:
Int
}
// FILE: B.kt
fun box
()
:
String
{
val y
:
(
Int
)
->
Int
=
{
it
*
2
}
val x
=
I
(
y
)
if
(
x
.
test
()
!=
60
)
return
"FAIL"
return
"OK"
}