Tests for private members and accessors for them
This commit is contained in:
committed by
Max Kammerer
parent
8641dbf42a
commit
3b02498ca8
@@ -0,0 +1,23 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
fun call() = inlineFun2 { stub() }
|
||||
|
||||
internal inline fun inlineFun2(p: () -> Unit): String {
|
||||
p()
|
||||
|
||||
return inlineFun {
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
private fun stub() = "fail"
|
||||
|
||||
private fun test() = "OK"
|
||||
|
||||
|
||||
inline internal fun inlineFun(p: () -> String): String {
|
||||
return p()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user