assertEquals("int", getAs(GoPsiTypeName.class, builtin.getTypeArgument()).getText());
assertEquals("new", get(builtin.getBaseExpression()).getText());
}
public void testMake() throws Exception {
GoFile file = get(
parse("" +
"package main\n" +
"var e = make(int, 1)"));
GoBuiltinCallOrConversionExpression builtin =
castAs(GoBuiltinCallOrConversionExpression.class, 0,
childAt(0,
childAt(0,
file.getGlobalVariables()
).getDeclarations()
).getExpressions()
);
assertEquals("int", getAs(GoPsiTypeName.class, builtin.getTypeArgument()).getText());