Testing auto imports work in calls

#KT-4000 In Progress
This commit is contained in:
Nikolay Krasko
2013-09-23 18:53:06 +04:00
parent 143d8d945c
commit 24794741ff
3 changed files with 41 additions and 0 deletions
@@ -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")