Home | History | Annotate | Download | only in other
      1 // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
      2 // for details. All rights reserved. Use of this source code is governed by a
      3 // BSD-style license that can be found in the LICENSE file.
      4 package lambdadesugaringnplus.other;
      5 
      6 class PackagePrivate {
      7   @Override
      8   public String toString() {
      9     return "PackagePrivate::toString()";
     10   }
     11 }
     12 
     13 public interface InterfaceWithDefaultPackagePrivate {
     14   String foo();
     15 
     16   default String defaultFoo() {
     17     return "defaultFoo: " + new PackagePrivate().toString();
     18   }
     19 
     20   static String staticFoo() {
     21     return "staticFoo: " + new PackagePrivate().toString();
     22   }
     23 }
     24