KT-8861 Package name vs property with wrong receiver
#KT-8861 Fixed
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package some
|
||||
|
||||
class A()
|
||||
|
||||
val Int.some: Int get() = 4
|
||||
val Int.foo: Int get() = 4
|
||||
|
||||
fun Int.extFun() = 4
|
||||
|
||||
fun String.test() {
|
||||
<!EXPRESSION_EXPECTED_PACKAGE_FOUND!>some<!>
|
||||
some.A()
|
||||
"".<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>some<!>
|
||||
|
||||
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foo<!>
|
||||
"".<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foo<!>
|
||||
|
||||
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>extFun<!>()
|
||||
"".<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>extFun<!>()
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package
|
||||
|
||||
package some {
|
||||
internal val kotlin.Int.foo: kotlin.Int
|
||||
internal val kotlin.Int.some: kotlin.Int
|
||||
internal fun kotlin.Int.extFun(): kotlin.Int
|
||||
internal fun kotlin.String.test(): kotlin.Unit
|
||||
|
||||
internal final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user