When passing MemberClass reference to ExceptionAssert.hasType It fails to compile as typeCondition requires Class<Throwable,Nothing>|Boolean(ClassModel<Throwable,Nothing>) The first union case should be ClassModel<Throwable,Nothing>
Example:
mport ceylon.test {
test,
assertThatException
}
class Outer{
static class Inner() extends Exception(){}
shared new(){}
shared void functionWhichThrows(){
throw Inner();
}
}
shared test void shouldCompile(){
assertThatException(()=> Outer().functionWhichThrows()).hasType(`Outer.Inner`);
}
When passing MemberClass reference to
ExceptionAssert.hasType
It fails to compile astypeCondition
requiresClass<Throwable,Nothing>|Boolean(ClassModel<Throwable,Nothing>)
The first union case should beClassModel<Throwable,Nothing>
Example: