parse("" +
"package main\n" +
"var e = Line{origin, Point{y: -4, z: 12.3}}\n"));
GoLiteralComposite composite =
getAs(GoLiteralComposite.class,
castAs(GoLiteralExpression.class, 0,
childAt(0,
childAt(0,
file.getGlobalVariables()
).getDeclarations()
).getExpressions()
).getLiteral());
assertEquals("Line",
getAs(GoPsiTypeName.class,
composite.getLiteralType()
).getName());
GoLiteralCompositeValue value = get(composite.getValue());
GoLiteralCompositeElement valueElement;
valueElement = childAt(0, value.getElements());
assertNull(valueElement.getKey());