TypesIncompatibleAbstractDefault.java revision 1392:d7d932236fee
118214Speter/*
218214Speter * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
318214Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
458551Skris *
558551Skris * This code is free software; you can redistribute it and/or modify it
658551Skris * under the terms of the GNU General Public License version 2 only, as
718214Speter * published by the Free Software Foundation.
858551Skris *
918214Speter * This code is distributed in the hope that it will be useful, but WITHOUT
1018214Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1118214Speter * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1218214Speter * version 2 for more details (a copy is included in the LICENSE file that
1358551Skris * accompanied this code).
1458551Skris *
1518214Speter * You should have received a copy of the GNU General Public License version
1618214Speter * 2 along with this work; if not, write to the Free Software Foundation,
1758551Skris * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1818214Speter *
1918214Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2018214Speter * or visit www.oracle.com if you need additional information or have any
2158551Skris * questions.
2218214Speter */
2358551Skris
2418214Speter// key: compiler.err.types.incompatible.abstract.default
25// options: -XDallowDefaultMethods
26
27class TypesIncompatibleAbstractDefault {
28    interface A {
29        default void m() { }
30    }
31
32    interface B {
33        void m();
34    }
35
36    interface AB extends A, B { }
37}
38