Testing auto imports work in calls
#KT-4000 In Progress
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Please specify constructor invocation; classifier 'ArrayList' does not have a class object
|
||||
|
||||
// KT-4000
|
||||
|
||||
package testing
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
class Test {
|
||||
fun foo(a: Collection<String>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val t = Test()
|
||||
t.foo(ArrayList)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Please specify constructor invocation; classifier 'ArrayList' does not have a class object
|
||||
|
||||
// KT-4000
|
||||
|
||||
package testing
|
||||
|
||||
class Test {
|
||||
fun foo(a: Collection<String>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val t = Test()
|
||||
t.foo(<caret>ArrayList)
|
||||
}
|
||||
@@ -351,6 +351,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
doTest("idea/testData/quickfix/autoImports/beforeNoImportForIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("beforeUnresolvedReferenceInCall.kt")
|
||||
public void testUnresolvedReferenceInCall() throws Exception {
|
||||
doTest("idea/testData/quickfix/autoImports/beforeUnresolvedReferenceInCall.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/quickfix/changeSignature")
|
||||
|
||||
Reference in New Issue
Block a user