Do not auto-import convention methods without 'operator' modifier (KT-10212)
#KT-10212 Fixed
This commit is contained in:
@@ -29,20 +29,4 @@ fun Some.get(s: String) {}
|
||||
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: foo()["str"]
|
||||
// ERROR: No get method providing array access
|
||||
|
||||
package testing
|
||||
|
||||
import some.Some
|
||||
import some.get
|
||||
|
||||
fun foo(): Some = Some()
|
||||
|
||||
fun testing() {
|
||||
foo()<caret>["str"]
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Should not be checked
|
||||
|
||||
Reference in New Issue
Block a user