Last active
November 9, 2020 12:04
-
-
Save zoren/c68ef80ba54183b5398689170b618624 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
interface I<TP> { | |
fun TP.func() | |
} | |
class Dummy | |
class Implementer : I<Dummy> { | |
override fun Dummy.func() { | |
println(this) | |
} | |
} | |
fun main() { | |
with(Implementer()) {Dummy().func()} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment