[EGL] Expected to return a Set, but returned a class [message #1012416] |
Thu, 21 February 2013 14:27 |
Patricia Fernández Messages: 41 Registered: October 2012 |
Member |
|
|
Hello,
I created an .egl file (called OperationsC.egl). It includes, simplified version, this operation:
[%
@template
operation currentPackages(): Set {
var packages : Set;
for (pack in Package.all) {
packages.add(pack);
}
return packages;
} %]
I have another .egl file where I want to use that operation:
[%
import "OperationsC.egl";
var packages : Set;
packages = currentPackages();
packages.println();
%]
But it's not working, giving me this error: currentPackages is expected to return a Set, but returned a class java.lang.String
I checked that the operation I created returns a Set and it does. I can't see what I'm doing wrong, if someone could help me... Thanks in advance!
[Updated on: Thu, 21 February 2013 14:30] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03381 seconds