Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
161333d3e7d13dd98386fe346a71a07eadfe4756
/
.
/
compiler
/
testData
/
codegen
/
box
/
function
/
defaultsWithInlineClasses.kt
blob: bc7a12186ab851b5fcd5dddb842f62803ca0e57f [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
inline
class
Foo
(
val value
:
Int
)
fun foo
(
x
:
Foo
=
Foo
(
42
))
=
x
.
value
fun box
():
String
{
assertEquals
(
foo
(),
42
)
assertEquals
(
foo
(
Foo
(
17
)),
17
)
return
"OK"
}