Opened 10 years ago
Closed 4 years ago
#3073 closed defect (fixed)
Wild card import in a sub package function fails to build the model
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
omc version 1.9.2+dev (r23940)
I observe that when I include a wild card import in a subpackage of a user library
library parser can not find the member functions in that package. I am forced to use fully
qualified names. eg.
package A
function test
import A.B.C.* ; this and
x := dummy() ; ... this combo does not work
x := A.B.C.dummy() ; this alone works
package B
package C
function dummy ...
Sample code to illustrate is attached:
Attachments (3)
Change History (5)
by , 10 years ago
comment:1 by , 10 years ago
apoligies for duplication of attachement ... the browser was playing up ...
comment:2 by , 4 years ago
Component: | *unknown* → Frontend |
---|---|
Milestone: | Future → 1.16.0 |
Resolution: | → fixed |
Status: | new → closed |
If the import is changed to mylib.A.B.C.*
(imports must be fully qualified) it now works correctly with both the old and the new frontend.
Zipped archive of illustration code