Created
March 17, 2023 13:52
-
-
Save s1monw1/63193f52a68cbcd1a21a72eb72fe3633 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
context(PrintingScope, TimeScope) | |
fun <K, V> Map<K, V>.customPrint() { | |
// ... | |
} | |
// get type in two different ways | |
val funType1: KFunction3<PrintingScope, TimeScope, Map<String, String>, Unit> = | |
Map<String, String>::customPrint | |
val funType2: context(PrintingScope, TimeScope) Map<String, String>.() -> Unit = | |
Map<String, String>::customPrint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment