Add test for KotlinBytecodeToolWindow

This commit is contained in:
Natalia Ukhorskaya
2015-04-21 15:46:38 +03:00
parent 907f0db7be
commit f936689db3
21 changed files with 254 additions and 1 deletions
@@ -0,0 +1,26 @@
package inlineFun1
inline fun myFun(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) f: () -> Int): Int {
val o = object {
fun test() = 1
}
o.test()
val lambda = { 1 }
lambda()
val o2 = object {
fun test() = f()
}
o2.test()
val lambda2 = { f() }
lambda2()
val ref = ::reference
ref.invoke()
return f()
}
fun reference() = 1