-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use assignment context for diamond trees
- Loading branch information
Showing
2 changed files
with
26 additions
and
11 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,21 @@ | ||
abstract class L4879<B> { | ||
protected L4879(A4879<B> c) {} | ||
} | ||
|
||
class A4879<A> { | ||
static class B4879<T> { | ||
public B4879() {} | ||
|
||
A4879<T> build() { | ||
throw new AssertionError(); | ||
} | ||
} | ||
} | ||
|
||
class Issue4879 { | ||
private final class I4879 extends L4879<Object> { | ||
private I4879() { | ||
super(new A4879.B4879<>().build()); | ||
} | ||
} | ||
} |