More accurate import conflict detection
This commit is contained in:
@@ -1 +0,0 @@
|
||||
Failed to add import
|
||||
@@ -0,0 +1,3 @@
|
||||
package pack1
|
||||
|
||||
fun ArrayList(){}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IMPORT: java.util.ArrayList
|
||||
import pack1.ArrayList
|
||||
|
||||
fun foo() {
|
||||
ArrayList()
|
||||
ArrayList<String>()
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// IMPORT: java.util.ArrayList
|
||||
import pack1.ArrayList
|
||||
import java.util.*
|
||||
|
||||
fun foo() {
|
||||
ArrayList()
|
||||
ArrayList<String>()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
fun div(char c1, char c2){}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IMPORT: dependency.div
|
||||
import java.math.BigDecimal
|
||||
import kotlin.math.div
|
||||
|
||||
fun foo(d1: BigDecimal, d2: BigDecimal) {
|
||||
val d = d1 / d2
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// IMPORT: dependency.div
|
||||
import dependency.*
|
||||
import java.math.BigDecimal
|
||||
import kotlin.math.div
|
||||
|
||||
fun foo(d1: BigDecimal, d2: BigDecimal) {
|
||||
val d = d1 / d2
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IMPORT: java.sql.Date
|
||||
import java.sql.*
|
||||
import java.util as Date
|
||||
|
||||
val d: Date.Date = Date.Date()
|
||||
Reference in New Issue
Block a user