Skip to content

Commit

Permalink
Add checkfile for ScalaCheck (#20388)
Browse files Browse the repository at this point in the history
[test_scala2_library_tasty]

Closes #20374
  • Loading branch information
hamzaremmal authored May 11, 2024
2 parents 8bffc9e + d00cd3d commit 362b075
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/init-global/warn/ScalaCheck.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Warning: tests/init-global/warn/ScalaCheck.scala:16:9 ---------------------------------------------------------------
16 | object OptMinSuccess extends IntOpt: // warn
| ^
| Cyclic initialization: object OptMinSuccess -> object FirstParser -> object OptMinSuccess. Calling trace:
| ├── object OptMinSuccess extends IntOpt: // warn [ ScalaCheck.scala:16 ]
| │ ^
| ├── object FirstParser extends CmdLineParser: [ ScalaCheck.scala:15 ]
| │ ^
| └── val opts = Some(OptMinSuccess) [ ScalaCheck.scala:21 ]
| ^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/init-global/warn/ScalaCheck.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ object FirstParser extends CmdLineParser:
val names = Set("bla")
val help = "bla"

val opts = List(OptMinSuccess)
val opts = Some(OptMinSuccess)
val a = "FirstParser"

0 comments on commit 362b075

Please sign in to comment.