Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
cli
/
jvm
/
inlineCycle.kt
blob: b5b3526dc8c70fc1f9ec7d9f0a35acfef066f55b [
file
]
inline
fun a
(
q
:
()
->
Unit
)
{
b
(
q
)
// check that nested not recognized as cycle
c
{
c
{
}
}
withDefaults
()
}
inline
fun withDefaults
(
x
:
Int
=
1
)
=
x
*
2
inline
fun b
(
p
:
()
->
Unit
)
{
p
()
a
(
p
)
}
inline
fun c
(
p
:
()
->
Unit
)
{
p
()
}