﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1829	Cannot find aliased package functions	adabe588@…	Martin Sjölund	"I have this simple code that I don't understand why it fails, I'm using aliased imports in other places without problem but I had one issue that I managed to get down to a simple program.

Replacing the call to `P.f()` with `PKG.f()` or compiling without `+g=MetaModelica` doesn't cause compiler failure.

{{{
package PKG

function f
  output Integer result;
algorithm
  result := 1;
end f;

end PKG;

package PKG2

package P = PKG;
// This also fails:
// import P = PKG;

function test
algorithm
  P.f();
end test;

end PKG2;

model M
algorithm
  PKG2.test();
end M;
}}}

Result:
{{{
> omc +g=MetaModelica P.mo 
Error processing file: P.mo
Error: Failed to instantiate function .P.f in scope PKG2.test
Error: Error occurred while flattening model M

# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!
}}}"	discussion	closed	high	1.9.0	Frontend	trunk	fixed		
