Skip to content

Commit d8832bf

Browse files
Fix serialversionud test: toLong is now const-folded
1 parent 3a1c0f4 commit d8832bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg/serialversionuid-not-const.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@SerialVersionUID(13l.toLong) class C1 extends Serializable // error
1+
@SerialVersionUID(13l.toLong) class C1 extends Serializable // OK because toLong is constant-folded
22
@SerialVersionUID(13l) class C2 extends Serializable // OK
33
@SerialVersionUID(13.asInstanceOf[Long]) class C3 extends Serializable // error
44
@SerialVersionUID(Test.bippy) class C4 extends Serializable // error

0 commit comments

Comments
 (0)