Last active
November 15, 2020 20:32
-
-
Save arifvn/7ea5c57862e738234eb86fb1a80405b2 to your computer and use it in GitHub Desktop.
This file contains 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 characters
// declaration | |
inline fun inlineFunction(callback: () -> User) { | |
println("before callback") | |
val result = callback() | |
println("after callback") | |
} | |
// Illegal usage of inline-parameter 'callback' in '...'. | |
// Add 'noinline' modifier to the parameter declaration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment