Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipleInheritance not working #1

Open
Richie94 opened this issue May 9, 2022 · 0 comments
Open

MultipleInheritance not working #1

Richie94 opened this issue May 9, 2022 · 0 comments

Comments

@Richie94
Copy link

Richie94 commented May 9, 2022

Hey there, I tried your example for multiple inheritance and it is building but not working as expected.
If you have a simple main like this

fun main() {
    val scp = ScannerAndPrinter(fastScanner, laserPrinter)

    println(scp.isOn())
}

it will result in an error on a Stackoverflow looping through isOn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant