-import project1 #alt1# import project1::module1 #alt2# import project1::module2 #alt3# import project1::fail
+import project1 #alt1# import project1::module1 #alt2# import project1::module2 #alt3# import project1::fail #alt4# import project1::module4 #alt5# import project1::project2
foo
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
import kernel
fun foo do 1.output
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
import project1
redef fun foo do 3.output
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import module4
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
import module1
redef fun foo do 2.output
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import module1
--- /dev/null
+alt/base_import_alt5.nit:1,8--25: Error: cannot find module `project2` from `project1`. Tried: ., ../lib/standard, ../lib/standard/collection, alt, ../lib, ../contrib.
project1 (\e[33mproject1\e[m)
|--\e[1mmodule1\e[m (\e[33mproject1/module1.nit\e[m)
|--\e[1mmodule2\e[m (\e[33mproject1/module2.nit\e[m)
-`--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+|--\e[1mmodule3\e[m (\e[33mproject1/module3.nit\e[m)
+|--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+`--subdir (\e[33mproject1/subdir\e[m)
+ `--\e[1mmodule4\e[m (\e[33mproject1/subdir/module4.nit\e[m)
+\e[1mproject2\e[m (\e[33mproject1/project2/project2.nit\e[m)
project1 (\e[33mproject1\e[m)
|--\e[1mmodule1\e[m (\e[33mproject1/module1.nit\e[m)
|--\e[1mmodule2\e[m (\e[33mproject1/module2.nit\e[m)
-`--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+|--\e[1mmodule3\e[m (\e[33mproject1/module3.nit\e[m)
+|--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+`--subdir (\e[33mproject1/subdir\e[m)
+ `--\e[1mmodule4\e[m (\e[33mproject1/subdir/module4.nit\e[m)
+\e[1mproject2\e[m (\e[33mproject1/project2/project2.nit\e[m)
project1 (\e[33mproject1\e[m)
|--\e[1mmodule1\e[m (\e[33mproject1/module1.nit\e[m)
|--\e[1mmodule2\e[m (\e[33mproject1/module2.nit\e[m)
-`--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+|--\e[1mmodule3\e[m (\e[33mproject1/module3.nit\e[m)
+|--\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+`--subdir (\e[33mproject1/subdir\e[m)
+ `--\e[1mmodule4\e[m (\e[33mproject1/subdir/module4.nit\e[m)
+project2 (\e[33mproject1/project2\e[m)
+|--\e[1mfoo\e[m (\e[33mproject1/project2/foo.nit\e[m)
+`--\e[1mproject2\e[m (\e[33mproject1/project2/project2.nit\e[m)
base_simple3/\e[1mbase_simple3\e[m (\e[33mbase_simple3.nit\e[m)
project1/\e[1mmodule1\e[m (\e[33mproject1/module1.nit\e[m)
project1/\e[1mmodule2\e[m (\e[33mproject1/module2.nit\e[m)
+project1/\e[1mmodule3\e[m (\e[33mproject1/module3.nit\e[m)
+project1/subdir/\e[1mmodule4\e[m (\e[33mproject1/subdir/module4.nit\e[m)
project1/\e[1mproject1\e[m (\e[33mproject1/project1.nit\e[m)
+project2/\e[1mproject2\e[m (\e[33mproject1/project2/project2.nit\e[m)