Created
July 14, 2022 09:30
-
-
Save dkwasniak/6d02d3bd0d25b45d5d3e11bddf419394 to your computer and use it in GitHub Desktop.
Revisions
-
dkwasniak created this gist
Jul 14, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ fun nonInlined(block: () -> Unit) { println("before") block() println("after") } inline fun inlined(block: () -> Unit) { println("before") block() println("after") } inline fun inlined() { println("test") } ############################# fun <T> doSomething(value: T) { println("Doing something with value: $value") } fun <T> doSomething1(value: T) { println("Doing something with type: ${T::class.simpleName}") }