equal
deleted
inserted
replaced
3056 incompatibleReturnType = null; |
3056 incompatibleReturnType = null; |
3057 } |
3057 } |
3058 |
3058 |
3059 if (!returnType.hasTag(VOID) && !resType.hasTag(VOID)) { |
3059 if (!returnType.hasTag(VOID) && !resType.hasTag(VOID)) { |
3060 if (resType.isErroneous() || |
3060 if (resType.isErroneous() || |
3061 new FunctionalReturnContext(checkContext).compatible(resType, returnType, types.noWarnings)) { |
3061 new FunctionalReturnContext(checkContext).compatible(resType, returnType, |
|
3062 checkContext.checkWarner(tree, resType, returnType))) { |
3062 incompatibleReturnType = null; |
3063 incompatibleReturnType = null; |
3063 } |
3064 } |
3064 } |
3065 } |
3065 |
3066 |
3066 if (incompatibleReturnType != null) { |
3067 if (incompatibleReturnType != null) { |