Changed language sematics: imports with '*' do not import packages anymore

This commit is contained in:
Valentin Kipyatkov
2014-12-24 20:05:15 +03:00
parent d540f3b724
commit 1f17d7adcd
16 changed files with 66 additions and 16 deletions
+1
View File
@@ -1,5 +1,6 @@
import java.*
import java.util.*
import java.util
import <error>utils</error>.*
import java.io.PrintStream
@@ -1,6 +1,6 @@
package some
import jettesting.*
import jettesting.data
fun other() {
data.topLevelFu<caret>
@@ -1,6 +1,6 @@
package some
import jettesting.*
import jettesting.data
fun other() {
data.topLevelFunction()
@@ -1,7 +1,7 @@
package testing.rename2
import testing.rename.Third
import testing.*
import testing.rename
import java.util.ArrayList
// Extends testing.rename.Third
@@ -1,7 +1,7 @@
package testing.rename2
import testing.rename.First
import testing.*
import testing.rename
import java.util.ArrayList
// Extends testing.rename.First
@@ -1,5 +1,7 @@
import java.io
fun File(): String = ""
class A {
val x = java.io.File()
val x = io.File()
}
@@ -1,5 +1,7 @@
import java.util
fun Random(): Int = 1
class A {
val x = java.util.Random()
val x = util.Random()
}
@@ -1,4 +1,6 @@
import java.util
fun foo(){
val Random = {}
val x = java.util.Random()
val x = util.Random()
}
@@ -1,6 +1,8 @@
import java.io
fun File(p: Int): String = ""
fun File(p: String): String = ""
class A {
val x = java.io.File()
val x = io.File()
}