Created
October 13, 2022 15:14
-
-
Save klukwist/cbfdb51cefb5e487c6983e9ba276457c 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 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