test/tools/javac/lambda/typeInference/combo/TypeInferenceComboTest.java

changeset 2000
4a6acc42c3a1
parent 1520
5c956be64b9e
child 2525
2eb010b6cb22
equal deleted inserted replaced
1999:7993cfab8610 2000:4a6acc42c3a1
225 if (lambdaBodyType != LambdaBody.RETURN_VOID) 225 if (lambdaBodyType != LambdaBody.RETURN_VOID)
226 return false; 226 return false;
227 } 227 }
228 else if (lambdaBodyType != LambdaBody.RETURN_ARG) 228 else if (lambdaBodyType != LambdaBody.RETURN_ARG)
229 return false; 229 return false;
230 if ( genericDeclKind == GenericDeclKind.GENERIC_NOBOUND || 230
231 genericDeclKind == GenericDeclKind.GENERIC_BOUND ) {
232 if ( parameterType == TypeKind.GENERIC &&
233 parameterKind == ParameterKind.IMPLICIT) //cyclic inference
234 return false;
235 }
236 return true; 231 return true;
237 } 232 }
238 233
239 String templateStr = "#C\n" + 234 String templateStr = "#C\n" +
240 "interface SAM2 {\n" + 235 "interface SAM2 {\n" +

mercurial