mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-14 23:09:22 +00:00
fix error on generic types
This commit is contained in:
parent
6763804c19
commit
ab1efbde63
@ -81,7 +81,7 @@ public class AsyncAwaitPropagationScanner extends AbstractTreeScanner {
|
||||
}
|
||||
}
|
||||
List<MethodSymbol> candidates = new LinkedList<>();
|
||||
Util.collectMatchingMethodDeclarationsInType(context.types, (TypeSymbol)parent.sym.getEnclosingElement(), parent.name.toString(), (MethodType)parent.sym.type, true, candidates);
|
||||
Util.collectMatchingMethodDeclarationsInType(context.types, (TypeSymbol)parent.sym.getEnclosingElement(), parent.name.toString(), (MethodType)context.types.erasureRecursive(parent.sym.type), true, candidates);
|
||||
for (MethodSymbol candidate : candidates) {
|
||||
context.addExtraAnnotationType(candidate, JSweetConfig.ANNOTATION_ASYNC);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user