-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct finding type variables of enclosing classes
- Loading branch information
Showing
2 changed files
with
58 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
public class Issue4924 { | ||
interface Callback<A> {} | ||
|
||
static class Template<B> { | ||
class Adapter implements Callback<B> {} | ||
} | ||
|
||
static class Super<C> extends Template<C> {} | ||
|
||
static class Issue extends Super<String> { | ||
void foo() { | ||
Callback<String> f = new Adapter(); | ||
} | ||
} | ||
} |