skiptools / skiptools/skip-bridge
Overridden constructor does not generate correct override bridge
Open
@aabewhite is already working on this.
Since Jun 1, 2025.
- Dominant language
- Swift
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.