Class implementing interface defined in that class causes compiler internal error


#1
class RenderingProfile : RenderingProfile.Holder {
    override var renderingProfile: RenderingProfile get() = this
        set(value) {

        }
    
    interface Holder {
        var renderingProfile: RenderingProfile
    }
}

causes compiler internal error.

Moving interface solves the problem:

class RenderingProfile : RenderingProfileHolder {
    override var renderingProfile: RenderingProfile get() = this
        set(value) {

        }

}

interface RenderingProfileHolder {
    var renderingProfile: RenderingProfile
}

#2

Could you please file a YouTrack issue? Thanks!


#3

@yole, done. https://youtrack.jetbrains.com/issue/KT-14393