Skip to content

Instantly share code, notes, and snippets.

@zoren
Last active November 9, 2020 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoren/c68ef80ba54183b5398689170b618624 to your computer and use it in GitHub Desktop.
Save zoren/c68ef80ba54183b5398689170b618624 to your computer and use it in GitHub Desktop.
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