Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Created May 4, 2020 11:10
Show Gist options
  • Save sagarpatel288/73f49816e5c753ce633ed918333489b6 to your computer and use it in GitHub Desktop.
Save sagarpatel288/73f49816e5c753ce633ed918333489b6 to your computer and use it in GitHub Desktop.
invalid inline function
//Compile time error… Illegal usage of inline function type [ftOne]...
inline fun Int.doSomething(y: Int, ftOne: Int.(Int) -> Int, ftTwo: (Int) -> Int) {
//passing a function type to another function
val funOne = someFunction(ftOne)
/*...*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment