Replace types that are imported by default via typealiases such as java.util.ArrayList with something else as it conflicts now with kotlin.collections.ArrayList and has to imported explicitly.
This commit is contained in:
+3
-3
@@ -1,13 +1,13 @@
|
||||
// IMPORT: java.util.HashMap
|
||||
// IMPORT: java.util.Calendar
|
||||
package p
|
||||
|
||||
import java.sql.*
|
||||
import java.util.ArrayList // maybe dropped on adding import with *
|
||||
import java.util.Properties // maybe dropped on adding import with *
|
||||
import java.util.Date // should not be dropped because of conflicting java.sql.Date class
|
||||
import java.util.HashSet as JavaHashSet // alias import should not be dropped
|
||||
|
||||
fun foo() {
|
||||
val v1 = JavaHashSet()
|
||||
val v2 = Date()
|
||||
val v3 = ArrayList()
|
||||
val v3 = Properties()
|
||||
}
|
||||
Reference in New Issue
Block a user