Code clean and some refactorings in 'getLambdaIfExistsAndMarkInstructions'

This commit is contained in:
Michael Bogdanov
2016-02-08 14:59:49 +03:00
parent c75b514551
commit 0f90dc1649
19 changed files with 143 additions and 154 deletions
@@ -0,0 +1,18 @@
package test
object ContentTypeByExtension {
inline fun processRecords(crossinline operation: (String) -> String) =
{
val ext = B("OK")
operation(ext.toLowerCase())
}()
}
inline fun A.toLowerCase(): String = (this as B).value
open class A
open class B(val value: String) : A()