Some of the utility functions in the module are annotated shared so the tests can get at them, but it might not make sense for them to be visible in general. We should look into using the restricted annotation to tighten the visibility to the test module.
Note that using the annotation requires us to add an optional import of the test module, or the compiler blows up with a NullPointerException. Doing the import doesn't seem optimal and the exception certainly isn't, but we may need to work around the problem and file an issue in the main Ceylon repo.
Some of the utility functions in the module are annotated
shared
so the tests can get at them, but it might not make sense for them to be visible in general. We should look into using therestricted
annotation to tighten the visibility to the test module.Note that using the annotation requires us to add an
optional
import of the test module, or the compiler blows up with aNullPointerException
. Doing the import doesn't seem optimal and the exception certainly isn't, but we may need to work around the problem and file an issue in the main Ceylon repo.