File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Xamarin.Android.JcwGen-Tests
Xamarin.Android.McwGen-Tests/java/com/xamarin/android Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ public void TestChainedDefaultInterfaceMethods ()
8383 Assert . AreEqual ( 6 , iface . InvokeFoo ( ) ) ;
8484 }
8585
86+ [ Test ]
87+ public void TestStaticInterfaceMethods ( )
88+ {
89+ Assert . AreEqual ( 0 , IDefaultMethodsInterface . StaticFoo ( ) ) ;
90+ }
91+
8692 class ManagedEmptyDefault : Java . Lang . Object , IDefaultMethodsInterface
8793 {
8894 }
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ public interface DefaultMethodsInterface
77 default void setBar (int value ) { }
88 default int toImplement () { throw new UnsupportedOperationException (); }
99 default int invokeFoo () { return foo (); }
10+ static int staticFoo () { return 0 ; }
1011}
You can’t perform that action at this time.
0 commit comments