Skip to content

Commit 52368b8

Browse files
committed
Fix "compile final vals in annotations" test in PluginASTSupprtTest.
This test validated if there is no error/warning related to [issue #54](#45) during compilation with Scoverage enabled. Scala 2.13.0-M3 emits different warning "@serialversionuid has no effect on non-serializable classes". This is unrelated to that issue and makes sense. The simple fix is to use case class, which is serializable.
1 parent a49c147 commit 52368b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalac-scoverage-plugin/src/test/scala/scoverage/PluginASTSupportTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class PluginASTSupportTest
165165
| final val foo = 1L
166166
|}
167167
|@SerialVersionUID(Foo.foo)
168-
|class Bar
168+
|case class Bar()
169169
|""".stripMargin)
170170
assert(!compiler.reporter.hasErrors)
171171
assert(!compiler.reporter.hasWarnings)

0 commit comments

Comments
 (0)