@@ -4038,7 +4038,7 @@ module ts {
40384038 function checkAndAggregateReturnExpressionTypes ( body : Block , contextualType ?: Type , contextualMapper ?: TypeMapper ) : Type [ ] {
40394039 var aggregatedTypes : Type [ ] = [ ] ;
40404040
4041- forEachReturnStatement ( body , ( returnStatement ) => {
4041+ forEachReturnStatement ( body , returnStatement => {
40424042 var expr = returnStatement . expression ;
40434043 if ( expr ) {
40444044 var type = checkAndMarkExpression ( expr , contextualType , contextualMapper ) ;
@@ -4052,7 +4052,7 @@ module ts {
40524052 }
40534053
40544054 function bodyContainsAReturnStatement ( funcBody : Block ) {
4055- return forEachReturnStatement ( funcBody , ( returnStatement ) => {
4055+ return forEachReturnStatement ( funcBody , returnStatement => {
40564056 return true ;
40574057 } ) ;
40584058 }
@@ -5343,7 +5343,7 @@ module ts {
53435343 // for interfaces property and indexer might be inherited from different bases
53445344 // check if any base class already has both property and indexer.
53455345 // check should be performed only if 'type' is the first type that brings property\indexer together
5346- var someBaseClassHasBothPropertyAndIndexer = forEach ( ( < InterfaceType > type ) . baseTypes , ( base ) => getPropertyOfType ( base , prop . name ) && getIndexTypeOfType ( base , indexKind ) ) ;
5346+ var someBaseClassHasBothPropertyAndIndexer = forEach ( ( < InterfaceType > type ) . baseTypes , base => getPropertyOfType ( base , prop . name ) && getIndexTypeOfType ( base , indexKind ) ) ;
53475347 errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : type . symbol . declarations [ 0 ] ;
53485348 }
53495349
0 commit comments