I think we should consider more exhaustive cases.

* Normal import `import imports.bug8922;` VS
  * `__traits(parent, imports)` : should be error, because `imports` has no parent. (== exactly the bug 8922)
  * `__traits(parent, bug8922)` : should return the package `imports`.
* Static import `static import imports.bug8922;` VS
  * `__traits(parent, imports)` : should be error, because `imports` has no parent.
  * `__traits(parent, bug8922)` : should be error, because `bug8922` is not found.
* Selective import `import renamed = imports.bug8922;` VS
  * `__traits(parent, renamed)` : should return importing module (probably?)
  * `__traits(parent, imports)` : should be error, because `imports` is not found.
  * `__traits(parent, bug8922)` : should be error, because `bug8922` is not found.

And for all cases, module level import VS function local import.