use of abs.frontend.ast.ParametricFunctionDecl in project abstools by abstools.
the class TypingTest method functionTypeParams.
@Test
public void functionTypeParams() {
Model m = assertParseOkStdLib(" def A f<A>(A a) = a ;");
ParametricFunctionDecl d = getLastParametricFunctionDecl(m);
assertEquals(d.getTypeParameter(0), ((TypeParameter) ((ExpFunctionDef) d.getFunctionDef()).getRhs().getType()).getDecl());
}
Aggregations