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" + |