We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a1c0f4 commit d8832bfCopy full SHA for d8832bf
tests/neg/serialversionuid-not-const.scala
@@ -1,4 +1,4 @@
1
-@SerialVersionUID(13l.toLong) class C1 extends Serializable // error
+@SerialVersionUID(13l.toLong) class C1 extends Serializable // OK because toLong is constant-folded
2
@SerialVersionUID(13l) class C2 extends Serializable // OK
3
@SerialVersionUID(13.asInstanceOf[Long]) class C3 extends Serializable // error
4
@SerialVersionUID(Test.bippy) class C4 extends Serializable // error
0 commit comments