kotlin
kotlin copied to clipboard
Make K2 incompatible ObjCName error consistent with K1
This changes the K2 error message from:
Repro.kt:16:1: error: member 'class DerivedFoo : AbstractFoo, IFoo' inherits inconsistent '@ObjCName' from '[class AbstractFoo : Any, interface IFoo : Any]'.
class DerivedFoo : AbstractFoo(), IFoo {}
^
To:
Repro.kt:16:1: error: member '@ObjCName(...) fun foo(): Unit' inherits inconsistent '@ObjCName' from '[class AbstractFoo : Any, interface IFoo : Any]'.
class DerivedFoo : AbstractFoo(), IFoo {}
^
Which is more in line with the error from 1.9:
/Users/markmann/incompatible-objc-name/Repro.kt:16:1: error: member "foo" inherits inconsistent @ObjCName from AbstractFoo, IFoo
class DerivedFoo : AbstractFoo(), IFoo {}
^
^KT-65572
@mglukhikh could you take a look?
Fixed - https://github.com/jetbrains/kotlin/commit/ec12637d7a89146ddd9b9baec07f9698b5054d39
Seems merged manually, closing.