initializer.target_type = variable_type;
}
- if (name == "result") {
- // warn if type of `result' variable is incompatible with return type
- // as an implicit `result' variable might be introduced to be used
- // by Vala postconditions and implicit checks generated by the code generated
- if (analyzer.current_return_type == null
- || !variable_type.compatible (analyzer.current_return_type)) {
- Report.warning (source_reference, "result variable type incompatible with return type");
- }
- }
-
if (initializer != null) {
if (initializer.value_type == null) {
if (!(initializer is MemberAccess) && !(initializer is LambdaExpression)) {