Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/security/test/https-first/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quellcode-Bibliothek Neg08.java   Sprache: unbekannt

 
/* @test /nodynamiccopyright/
 * @bug 7192246
 * @summary check that default overrides are properly type-checked
 * @compile/fail/ref=Neg08.out -XDrawDiagnostics Neg08.java
 */

class Neg08 {
    interface I {
        default void m() { }
    }

    static class C1 {
        void m() { } //weaker modifier
    }

    static class C2 extends C1 implements I { }

    static class C3 implements I {
        void m() { } //weaker modifier
    }
}

Messung V0.5
C=94 H=89 G=91

[ 0.12Quellennavigators  Projekt   ]