Thread
#multiplatform
    s

    sandwwraith

    5 years ago
    I'm trying to make common abstraction over
    java.io.Writer
    class. Given the
    header abstract class Writer protected constructor()
    in common module and
    impl typealias Writer = java.io.Writer
    in jvm module, it fails to compile with:
    The following declaration is incompatible because some members are not implemented:
        public typealias Writer = Writer
    No implementations are found for members listed below:
    
        protected constructor Writer()
    
        The following declaration is incompatible because visibility is different:
            protected/*protected and package*/ constructor Writer()
        The following declaration is incompatible because number of value parameters is different:
            protected/*protected and package*/ constructor Writer(p0: Any!)
    Is it a bug or I'm missing something? Don't know how to make "protected/protected and package/ constructor"...