diff options
Diffstat (limited to 'tests/untried/pos/t2377/Q.java')
-rw-r--r-- | tests/untried/pos/t2377/Q.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/pos/t2377/Q.java b/tests/untried/pos/t2377/Q.java new file mode 100644 index 000000000..e3d11c70e --- /dev/null +++ b/tests/untried/pos/t2377/Q.java @@ -0,0 +1,12 @@ +public final class Q { + public static final class Stage { + public static Builder newBuilder() { return new Builder(); } + public static final class Builder { } + public Builder toBuilder() { return newBuilder(); } + } + public static final class WorkUnit { + public static Builder newBuilder() { return new Builder(); } + public static final class Builder { } + public Builder toBuilder() { return newBuilder(); } + } +} |