Sebastien Hertz | 681eb29 | 2018-04-10 17:30:28 +0200 | [diff] [blame] | 1 | // Copyright (c) 2018, 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 | |
| 5 | interface InterfaceWithDefaultAndStaticMethods { |
| 6 | default void doSomething(String msg) { |
| 7 | String name = getClass().getName(); |
| 8 | System.out.println(name + ": " + msg); |
| 9 | } |
| 10 | |
| 11 | static void printString(String msg) { |
| 12 | System.out.println(msg); |
| 13 | } |
| 14 | } |