Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Kotlin/Native Plugin for IntelliJ confuses method signatures when implementing ObjC protocol #2476

Closed
chris-hatton opened this issue Dec 18, 2018 · 3 comments

Comments

@chris-hatton
Copy link

chris-hatton commented Dec 18, 2018

Affects
IntelliJ Community 2018.3
kotlin-multiplatform plugin versions1.3.10 & 1.3.11

class Source : NSObject(), UITableViewDataSourceProtocol {
    override fun tableView(tableView: UITableView, cellForRowAtIndexPath: NSIndexPath): UITableViewCell {...}
    override fun tableView(tableView: UITableView, numberOfRowsInSection: NSInteger): NSInteger {...}
}

screenshot 2018-12-18 at 10 51 15

This is a valid delcaration which **compiles without error**.

However the IDE plugin appears to think a different method signature is being overridden and complains that the return type is incorrect.

@Alex009
Copy link

Alex009 commented Nov 12, 2019

on kotlin 1.3.50 same issue :(

@trondat
Copy link

trondat commented Mar 4, 2020

This is not resolved in Kotlin 1.3.61 either.. :-(..

@SvyatoslavScherbina
Copy link
Collaborator

Moved to https://youtrack.jetbrains.com/issue/KT-48067, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants