diff options
Diffstat (limited to 'tests/pos/java-interop/t2377/Q.java')
-rw-r--r-- | tests/pos/java-interop/t2377/Q.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/java-interop/t2377/Q.java b/tests/pos/java-interop/t2377/Q.java new file mode 100644 index 000000000..e3d11c70e --- /dev/null +++ b/tests/pos/java-interop/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(); } + } +} |