Support inline for simple extension function case.

This commit is contained in:
Pavel V. Talanov
2012-03-28 19:03:54 +04:00
parent b80b7a9050
commit fd1d6e8dfc
3 changed files with 45 additions and 17 deletions
@@ -0,0 +1,9 @@
package foo
class A() {
val a = 5
}
inline fun A.myInlineExtension() = a + 1
fun box() = A().myInlineExtension() == 6