More accurate import conflict detection

This commit is contained in:
Valentin Kipyatkov
2015-03-31 22:21:45 +03:00
parent e22f28c061
commit 7e9314bd40
11 changed files with 72 additions and 12 deletions
@@ -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()