Boolean ret = task.call();
assertFalse(ret);
TreeSet<CompilerError> actualErrors = c.get(Diagnostic.Kind.ERROR);
compareErrors(actualErrors,
new CompilerError(1, "package not found in imported modules: 'java.lang' (define a module and add module import to its module descriptor)"),
new CompilerError(1, "source code imports two different versions of module 'ceylon.file': version \"0.5\" and version \"1.1.0\""),
new CompilerError(2, "cannot find module artifact fooxhilio.bastardo-77.9(.car|.jar)\n"
+" \t- dependency tree: unknownmodule/1.0.0 -> fooxhilio.bastardo/77.9"),
new CompilerError(4, "function or value does not exist: 'nanoTime'"),
new CompilerError(4, "type does not exist: 'Test'"),
new CompilerError(4, "unsupported module name: this namespace is used by Java platform modules"),
new CompilerError(5, "duplicate declaration name: 'run'"),
new CompilerError(7, "duplicate declaration name: 'run'"),
new CompilerError(10, "case must be a toplevel anonymous class: 'alive' is not toplevel"),
new CompilerError(10, "case must be a toplevel anonymous class: 'dead' is not toplevel"),
new CompilerError(10, "case must be a toplevel anonymous class: 'moribund' is not toplevel"),
new CompilerError(10, "case must be a toplevel anonymous class: 'resurrected' is not toplevel"),
new CompilerError(12, "imported declaration not found: 'newServer_bogus'"),
new CompilerError(30, "function or value does not exist: 'newServer_bogus'"),
new CompilerError(30, "named arguments not supported for indirect invocations"),
new CompilerError(135, "function or value does not exist: 'array'"),
new CompilerError(135, "named arguments not supported for indirect invocations"),
new CompilerError(138, "could not determine type of function or value reference: 'cells'"),
new CompilerError(139, "could not determine type of function or value reference: 'c'"),
new CompilerError(140, "could not determine type of function or value reference: 'c'")
);
File carFile = getModuleArchive("default", null);
assertTrue(carFile.exists());