Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
defaultargs.kt
blob: d24557a2b17f9d46b5cc3dc29b0094e6db151270 [
file
] [
log
] [
blame
]
// IGNORE_FIR_DIAGNOSTICS
open
abstract
class
B
{
fun foo
(
arg
:
Int
=
239
+
1
)
:
Int
=
arg
}
class
C
()
:
B
()
{
}
fun box
()
:
String
{
if
(
C
().
foo
(
10
)
!=
10
)
return
"fail"
if
(
C
().
foo
()
!=
240
)
return
"fail"
return
"OK"
}