Skip to content

Overridden constructor does not generate correct override bridge #86

@marcprux

Description

@marcprux

Given:

public class AVPlayer {
    public init(playerItem: AVPlayerItem?) {
        
    }
}

public class AVQueuePlayer: AVPlayer {
    public override init(playerItem: AVPlayerItem?) {
        
    }
}

The generated bridge is:

public class AVPlayer: BridgedFromKotlin {
    public init(playerItem p_0: AVPlayerItem?) {
        
    }
}

public class AVQueuePlayer: AVPlayer {
    public init(playerItem p_0: AVPlayerItem?) {
        
    }
}

which gives the compile error:

overriding declaration requires an 'override' keyword

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions