Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Its pretty simple:

    sealed interface Foo
    class A(val s: String): Foo
    class B(val b: Int): Foo


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: