We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc430ee commit 879d07dCopy full SHA for 879d07d
compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala
@@ -231,6 +231,9 @@ trait BCodeSkelBuilder extends BCodeHelpers {
231
val javagensig = getGenericSignature(f, claszSymbol)
232
val flags = javaFieldFlags(f)
233
234
+ assert(!f.isStaticMember || !claszSymbol.isInterface || !f.isMutable,
235
+ s"interface $claszSymbol cannot have non-final static field $f")
236
+
237
val jfield = new asm.tree.FieldNode(
238
flags,
239
f.javaSimpleName.toString,
0 commit comments