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)
|
||||
}
|
||||
Reference in New Issue
Block a user