-
Bug
-
Resolution: Unresolved
-
None
-
unspecified
-
None
-
Operating System: All
Platform: All
-
5850
The "import" statement can only be in the module in a particular
place, right after the namespace and prefix definition. It cannot go
after the "organization" or "contact" blocks. This is defined in the
spec (somewhere).
I can enter text after the "contact" block, entering "impo" and then
ctrl+space, and it will complete "import", and it will let me select
the module name and complete a valid "import" statement, but the
entire statement won't be valid because you can't have an "import"
there. It should not have offered the "import" completion at that
point in the file.
An intelligent editor shouldn't be dumb. It shouldn't help you build a line that won't compile. It would be nice if it could somehow indicate that "import" is not valid in this location.