Skip to content

Commit d00cd3d

Browse files
committed
Add checkfile for ScalaCheck
1 parent 8bffc9e commit d00cd3d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Warning: tests/init-global/warn/ScalaCheck.scala:16:9 ---------------------------------------------------------------
2+
16 | object OptMinSuccess extends IntOpt: // warn
3+
| ^
4+
| Cyclic initialization: object OptMinSuccess -> object FirstParser -> object OptMinSuccess. Calling trace:
5+
| ├── object OptMinSuccess extends IntOpt: // warn [ ScalaCheck.scala:16 ]
6+
| │ ^
7+
| ├── object FirstParser extends CmdLineParser: [ ScalaCheck.scala:15 ]
8+
| │ ^
9+
| └── val opts = Some(OptMinSuccess) [ ScalaCheck.scala:21 ]
10+
| ^^^^^^^^^^^^^

tests/init-global/warn/ScalaCheck.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ object FirstParser extends CmdLineParser:
1818
val names = Set("bla")
1919
val help = "bla"
2020

21-
val opts = List(OptMinSuccess)
21+
val opts = Some(OptMinSuccess)
2222
val a = "FirstParser"

0 commit comments

Comments
 (0)