Files
kotlin-fork/idea/testData/intentions/importAllMembers/AmbiguousCalls.kt
T
Roman Golyshev 7d662bf5d1 Change testData for IntentionsTestGenerated to avoid using javax and sql packages
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
2020-06-05 16:03:51 +03:00

16 lines
768 B
Kotlin
Vendored

// INTENTION_TEXT: "Import members from 'JavaUtilClass'"
// WITH_RUNTIME
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun overloadedMethod(i: Int): Unit defined in JavaUtilClass<br>public open fun overloadedMethod(i: String!): Unit defined in JavaUtilClass
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun overloadedMethod(i: Int): Unit defined in JavaUtilClass<br>public open fun overloadedMethod(i: String!): Unit defined in JavaUtilClass
// ERROR: Unresolved reference: unresolved
fun foo() {
<caret>JavaUtilClass.overloadedMethod()
val bottom = JavaUtilClass.STATIC_FIELD
JavaUtilClass.overloadedMethod()
JavaUtilClass.unresolved
}