test what happens if function is imported two times

This commit is contained in:
Stepan Koltsov
2012-06-16 02:45:59 +04:00
parent c64dd90087
commit 4d4a70cb83
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,14 @@
// FILE: a.jet
package weatherForecast
fun weatherToday() = "snow"
// FILE: b.jet
package myApp
import weatherForecast.weatherToday
import weatherForecast.weatherToday
fun needUmbrella() = weatherToday() == "rain"
@@ -0,0 +1,14 @@
// FILE: a.jet
package weatherForecast
fun weatherToday() = "snow"
// FILE: b.jet
package myApp
import weatherForecast.*
import weatherForecast.*
fun needUmbrella() = weatherToday() == "rain"