diff options
Diffstat (limited to 'src/test/test5/ProceedDefault.java')
-rw-r--r-- | src/test/test5/ProceedDefault.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/test5/ProceedDefault.java b/src/test/test5/ProceedDefault.java new file mode 100644 index 00000000..18e2ee18 --- /dev/null +++ b/src/test/test5/ProceedDefault.java @@ -0,0 +1,13 @@ +package test5; + +interface ProceedDefaultI { + default int foo() { return 13; } +} + +public class ProceedDefault implements ProceedDefaultI { + public int run() { return bar(); } + public int foo() { return 1700; } + public int bar() { + return foo() + ProceedDefaultI.super.foo(); + } +} |