0ff9982b31
When a call is resolved to a classifier, only a single error message was being used for multiple cases. This lead to confusion as the default message may not be applicable to a given error case. Added additional errors and messages to distinguish between these error cases. #KT-57251 Fixed
27 lines
602 B
Kotlin
Vendored
27 lines
602 B
Kotlin
Vendored
open class SomeClass<T>
|
|
class TestSome<P> {
|
|
companion object : SomeClass<<!UNRESOLVED_REFERENCE!>P<!>>() {
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
companion object : <!UNRESOLVED_REFERENCE!>InnerClass<!>() {
|
|
val a = object: <!UNRESOLVED_REFERENCE!>InnerClass<!>() {
|
|
}
|
|
|
|
fun more(): InnerClass {
|
|
val b = <!INNER_CLASS_CONSTRUCTOR_NO_RECEIVER!>InnerClass<!>()
|
|
|
|
val testVal = <!UNRESOLVED_REFERENCE!>inClass<!>
|
|
<!UNRESOLVED_REFERENCE!>foo<!>()
|
|
|
|
return b
|
|
}
|
|
}
|
|
|
|
val inClass = 12
|
|
fun foo() {}
|
|
|
|
open inner class InnerClass
|
|
}
|