Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
534b00eff856e0e4dcaf105df9a043d9b1263ff7
/
.
/
compiler
/
testData
/
codegen
/
box
/
function
/
defaults2.kt
blob: 46767c716f7c43897f4d368b0d8fa7503379e728 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
fun
Int
.
foo
(
inc0
:
Int
,
inc
:
Int
=
0
)
=
this
+
inc0
+
inc
fun box
():
String
{
val v
=
42.foo
(
0
)
if
(
v
!=
42
)
{
println
(
"test failed v:$v expected:42"
)
throw
Error
()
}
return
"OK"
}