-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[javac] For wildcards, if the bound is not provided by the `DeclaredT…
…ype`, get it from the type declaration The following cases are handled: ``` // Given: class C<T extends Iterator<Integer>> implements Iterable<Integer> { public T iterator(); } // Case 1: // In this case, the bound is null C<?> a; for (int s : a) {} // Case 2: // In this case, the bound is j.l.Object C<? extends Object> b; for (int s : b) {} ``` PiperOrigin-RevId: 698477543
- Loading branch information
1 parent
e74135b
commit 2c321a5
Showing
1 changed file
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters