Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9f74a475e654a271d2924cb1d68ecbb852e03892
/
.
/
plugins
/
power-assert
/
testData
/
codegen
/
arithmetic
/
InlineAddition.kt
blob: 11802fcd1072844a461e07d17a965c66f0f0a1ba [
file
]
fun box
():
String
=
runAll
(
"test1"
to
{
test1
()
},
"test2"
to
{
test2
(
true
,
false
)
},
)
fun test1
()
{
assert
(
1
+
1
==
4
)
}
fun test2
(
a
:
Boolean
,
b
:
Boolean
)
{
assert
(
a
+
b
)
}
operator
fun
Boolean
.
plus
(
b
:
Boolean
)
=
this
&&
b