Fixes bug 628693.
}
analyzer.current_symbol = this;
+ if (variable_type is VoidType) {
+ error = true;
+ Report.error (source_reference, "'void' not supported as field type");
+ return false;
+ }
+
variable_type.check (analyzer);
// check whether field type is at least as accessible as the field
analyzer.current_symbol = parent_symbol;
if (variable_type != null) {
+ if (variable_type is VoidType) {
+ error = true;
+ Report.error (source_reference, "'void' not supported as parameter type");
+ return false;
+ }
variable_type.check (analyzer);
}
checked = true;
if (variable_type != null) {
+ if (variable_type is VoidType) {
+ error = true;
+ Report.error (source_reference, "'void' not supported as variable type");
+ return false;
+ }
variable_type.check (analyzer);
}
}
analyzer.current_symbol = this;
+ if (property_type is VoidType) {
+ error = true;
+ Report.error (source_reference, "'void' not supported as property type");
+ return false;
+ }
+
property_type.check (analyzer);
if (get_accessor != null) {