KT-2752: add checkers for inconsistent usage of JsName
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package foo
|
||||
|
||||
class A
|
||||
|
||||
class B
|
||||
|
||||
val A.foo: Int
|
||||
get() = 32
|
||||
|
||||
val B.foo: Int
|
||||
get() = 42
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(32, A().foo)
|
||||
assertEquals(42, B().foo)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user