<NME> ElmLayeredImportResolveTest.kt
<BEF> ADDFILE
<MSG> Allow multiple modules to be imported under the same name/alias (#72)


<DFF> @@ -0,0 +1,44 @@
+package org.elm.lang.core.resolve
+
+class ElmLayeredImportResolveTest : ElmResolveTestBase() {
+
+    /**
+     * Layered imports are imports where multiple modules are imported using the same alias.
+     */
+
+    fun `test layered import using first import`() = stubOnlyResolve(
+            """
+--@ main.elm
+import Foo as F
+import FooExtra as F
+main = F.bar
+         --^Foo.elm
+
+--@ Foo.elm
+module Foo exposing (..)
+bar = 42
+
+--@ FooExtra.elm
+module FooExtra exposing (..)
+quux = 99
+""")
+
+    fun `test layered import using second import`() = stubOnlyResolve(
+            """
+--@ main.elm
+import Foo as F
+import FooExtra as F
+main = F.quux
+         --^FooExtra.elm
+
+--@ Foo.elm
+module Foo exposing (..)
+bar = 42
+
+--@ FooExtra.elm
+module FooExtra exposing (..)
+quux = 99
+""")
+
+
+}
\ No newline at end of file

Allow multiple modules to be imported under the same name/alias (#72)