The reason for that is because ImportResolverAlgorithm.tryResolveImport does not consider the symbols in the from ... import <symbols> case at all. The algorithm should be improved to handle all the symbols from these kinds of imports as well. For that, we will most likely have to change the definition of the Result type parameter.
The two types of imports
from project.Module import Something
andimport project.Module.Something
should be semantically exactly the same. But they are not. For example, changing the line in the test in https://github.com/enso-org/enso/blob/c9f0a36e2ec867c4fe2b346890c78fff3beaa265/engine/runtime-integration-tests/src/test/scala/org/enso/compiler/test/semantic/ImportExportTest.scala#L291 towill make the test fail.
The same is true for exports.
The reason for that is because ImportResolverAlgorithm.tryResolveImport does not consider the symbols in the
from ... import <symbols>
case at all. The algorithm should be improved to handle all the symbols from these kinds of imports as well. For that, we will most likely have to change the definition of theResult
type parameter.