&& call.symbol_reference.parent_symbol is Struct)
|| call.symbol_reference is Struct)) {
var st = call.symbol_reference as Struct;
- if (st != null && (st.is_boolean_type () || st.is_integer_type () || st.is_floating_type ())) {
+ if (st != null && st.default_construction_method == null && (st.is_boolean_type () || st.is_integer_type () || st.is_floating_type ())) {
error = true;
Report.error (source_reference, "invocation not supported in this context");
return false;