KT-5308 Wrong ExplicitReceiverKind when access to IntRange.EMPTY

#KT-5308 Fixed
This commit is contained in:
Svetlana Isakova
2014-07-18 23:14:33 +04:00
parent 8289f13016
commit 6c63492355
8 changed files with 101 additions and 2 deletions
@@ -0,0 +1,11 @@
class Foo {
class object {
val baz = Foo()
}
}
fun test() {
Foo.<caret>baz
}
@@ -0,0 +1,18 @@
class Foo {
class object {
val baz = Foo()
}
}
fun test() {
Foo.<caret>baz
}
Resolved call:
Resulting descriptor: val baz: Foo
Explicit receiver kind = THIS_OBJECT
This object = Foo {<class-object-for-Foo>}
Receiver argument = NO_RECEIVER
@@ -0,0 +1,4 @@
//KT-5308 Wrong ExplicitReceiverKind when access to IntRange.EMPTY
fun test() {
IntRange.<caret>EMPTY
}
@@ -0,0 +1,13 @@
//KT-5308 Wrong ExplicitReceiverKind when access to IntRange.EMPTY
fun test() {
IntRange.<caret>EMPTY
}
Resolved call:
Resulting descriptor: val EMPTY: IntRange
Explicit receiver kind = THIS_OBJECT
This object = IntRange {<class-object-for-IntRange>}
Receiver argument = NO_RECEIVER
@@ -0,0 +1,9 @@
object Foo {
val baz = 42
}
fun test() {
Foo.<caret>baz
}
@@ -0,0 +1,16 @@
object Foo {
val baz = 42
}
fun test() {
Foo.<caret>baz
}
Resolved call:
Resulting descriptor: val baz: Int
Explicit receiver kind = THIS_OBJECT
This object = Foo {Foo}
Receiver argument = NO_RECEIVER