Closed FroMage closed 10 years ago
Not sure how to write a test for this without the language module being available. The test would involve running this module:
run.ceylon
:
import ceylon.language.model { Class, modules }
import ceylon.language.model.declaration { ClassDeclaration }
shared class A(){}
void run(){
assert(exists mod = modules.find("test", "1"));
assert(exists pkg = mod.findPackage("test"));
assert(is ClassDeclaration klass = pkg.getClassOrInterface("A"));
assert(is Class<Anything,[]> model = klass.apply());
value instance = model();
// if we get this far with no exception we're good
print("It works!");
}
module.ceylon
:
module test '1' {}
This is fixed (and verified), but needs a test to be added.
We've lots of tests now for this.
As explained in ceylon/ceylon-compiler#1249, we need the hidden module dependencies of
ceylon.language
to be registered in the runtime metamodel.