Changeset 2300 for cobra/trunk/Source/Statements.cobra
- Timestamp:
- 03/05/10 05:30:16 (2 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Statements.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Statements.cobra
r2274 r2300 1084 1084 expr.contextType = curCodeMember.resultType 1085 1085 else 1086 if curCodeMember.resultType is not .compiler.voidType 1086 # TODO: the check for .passThroughType below is required only because lambdas are using it for their return value instead of setting it to the correct type. so improving lambdas (AnonExpr) will allow the removal of that check 1087 if curCodeMember.resultType is not .compiler.voidType and curCodeMember.resultType is not .compiler.passThroughType 1087 1088 .throwError('Return statement must return a [curCodeMember.resultType.name], or [curCodeMember.name] must have its return type removed.') 1088 1089 curCodeMember.hasReturnStmt = true



