Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
defaultargs5.kt
blob: 91dc6f6be40aa7c7c9963fb281829476fa5ff24b [
file
] [
log
] [
blame
]
open
abstract
class
B
{
abstract
fun foo2
(
arg
:
Int
=
239
)
:
Int
}
class
C
:
B
()
{
override
fun foo2
(
arg
:
Int
)
:
Int
=
arg
}
fun box
()
:
String
{
if
(
C
().
foo2
()
!=
239
)
return
"fail"
if
(
C
().
foo2
(
10
)
!=
10
)
return
"fail"
return
"OK"
}