Skip to content

Instantly share code, notes, and snippets.

@klukwist
Created October 13, 2022 15:14
Show Gist options
  • Save klukwist/cbfdb51cefb5e487c6983e9ba276457c to your computer and use it in GitHub Desktop.
Save klukwist/cbfdb51cefb5e487c6983e9ba276457c to your computer and use it in GitHub Desktop.
interface A {
fun foo()
}
class AImpl: A {
override fun foo() {
print("A")
}
}
interface B {
fun bar()
}
class BImpl(private val a: A): B {
override fun bar() {
print("B")
}
}
class C(
val a: A,
val b: B,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment