File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
engine/runtime-parser/src/main/java/org/enso/compiler/core/ir Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,29 @@ interface Annotation extends JName, Definition {
184184 @ Override
185185 Annotation duplicate (boolean keepLocations , boolean keepMetadata , boolean keepDiagnostics ,
186186 boolean keepIdentifiers );
187+
188+ /**
189+ * These {@code duplicate$default$N} default methods need to be here, otherwise {@code javac}
190+ * would fail to compile with: "interface Annotation inherits unrelated defaults for {@code
191+ * duplicate$default$N} from types Expression and Definition". The {@link Annotation} interface
192+ * inherits from both {@link Expression} and {@link Definition} traits, and they both have their
193+ * own {@code duplicate$default$N} methods.
194+ */
195+ default boolean duplicate$default$1 () {
196+ return true ;
197+ }
198+
199+ default boolean duplicate$default$2 () {
200+ return true ;
201+ }
202+
203+ default boolean duplicate$default$3 () {
204+ return true ;
205+ }
206+
207+ default boolean duplicate$default$4 () {
208+ return false ;
209+ }
187210 }
188211
189212 @ GenerateIR (interfaces = {Annotation .class , IRKind .Primitive .class })
You can’t perform that action at this time.
0 commit comments