use of org.eclipse.xtext.xtype.XFunctionTypeRef in project xtext-xtend by eclipse.
the class ParserTest method testFunctionTypeRef_1.
@Test
public void testFunctionTypeRef_1() throws Exception {
XtendFunction func = function("def (String)=>Boolean foo() { [String s|s==null]}");
XFunctionTypeRef type = (XFunctionTypeRef) func.getReturnType();
assertNotNull(type.getReturnType());
assertEquals(1, type.getParamTypes().size());
assertNotNull(type.getParamTypes().get(0));
}
Aggregations