More cases supported for inline functions: namespace level functions with parameters (not blocks)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
fun box() : Boolean {
|
||||
return !(A(false).myInlineMethod()) and A(true).myInlineMethod()
|
||||
}
|
||||
|
||||
class A(val a : Boolean) {
|
||||
inline fun myInlineMethod() : Boolean {
|
||||
return a
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user