use of com.redhat.ceylon.model.loader.TypeParserException in project ceylon-compiler by ceylon.
the class TypeParserTests method testIterableAbbrev.
@Test
public void testIterableAbbrev() {
try {
new TypeParser(MockLoader.instance).decodeType("{a}", null, mockDefaultModule, mockPkgUnit);
Assert.fail();
} catch (TypeParserException e) {
Assert.assertEquals("com.redhat.ceylon.model.loader.TypeParserException: Expected multiplicity in abbreviated Iterable type: 2", e.toString());
}
}
Aggregations