2213 || (tree.clazz.type != null && inferenceContext.free(tree.clazz.type)))) { |
2213 || (tree.clazz.type != null && inferenceContext.free(tree.clazz.type)))) { |
2214 final ResultInfo resultInfoForClassDefinition = this.resultInfo; |
2214 final ResultInfo resultInfoForClassDefinition = this.resultInfo; |
2215 inferenceContext.addFreeTypeListener(List.of(tree.constructorType, tree.clazz.type), |
2215 inferenceContext.addFreeTypeListener(List.of(tree.constructorType, tree.clazz.type), |
2216 instantiatedContext -> { |
2216 instantiatedContext -> { |
2217 tree.constructorType = instantiatedContext.asInstType(tree.constructorType); |
2217 tree.constructorType = instantiatedContext.asInstType(tree.constructorType); |
2218 clazz.type = instantiatedContext.asInstType(clazz.type); |
2218 tree.clazz.type = clazz.type = instantiatedContext.asInstType(clazz.type); |
2219 ResultInfo prevResult = this.resultInfo; |
2219 ResultInfo prevResult = this.resultInfo; |
2220 try { |
2220 try { |
2221 this.resultInfo = resultInfoForClassDefinition; |
2221 this.resultInfo = resultInfoForClassDefinition; |
2222 visitAnonymousClassDefinition(tree, clazz, clazz.type, cdef, |
2222 visitAnonymousClassDefinition(tree, clazz, clazz.type, cdef, |
2223 localEnv, argtypes, typeargtypes, pkind); |
2223 localEnv, argtypes, typeargtypes, pkind); |