diff --git a/compiler/testData/diagnostics/tests/scopes/ImportTwoTimes.jet b/compiler/testData/diagnostics/tests/scopes/ImportTwoTimes.jet new file mode 100644 index 00000000000..46bb23b0be8 --- /dev/null +++ b/compiler/testData/diagnostics/tests/scopes/ImportTwoTimes.jet @@ -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" diff --git a/compiler/testData/diagnostics/tests/scopes/ImportTwoTimesStar.jet b/compiler/testData/diagnostics/tests/scopes/ImportTwoTimesStar.jet new file mode 100644 index 00000000000..6ee8df84eb8 --- /dev/null +++ b/compiler/testData/diagnostics/tests/scopes/ImportTwoTimesStar.jet @@ -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"