Last active
June 10, 2017 03:17
-
-
Save ReneeVandervelde/55878be63e22123205b19adf2eb4b50b 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
fun setOnClickListener(listener: (view: View) -> Unit) { | |
// ... | |
} | |
fun main() { | |
setOnClickListener { it.bringToFront() } | |
setOnClickListener(this::test) | |
} | |
fun test(view: View) { | |
view.bringToFront() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment