Skip to content

Commit 455dba4

Browse files
committed
Add test
1 parent b10d64e commit 455dba4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
trait CmdLineParser:
2+
outer =>
3+
4+
val a: String
5+
6+
trait Opt[+T]:
7+
val default: T
8+
val names: Set[String]
9+
val help: String
10+
11+
trait IntOpt extends Opt[Int]:
12+
println("outer = " + outer)
13+
println("outer.a = " + outer.a)
14+
15+
object FirstParser extends CmdLineParser:
16+
object OptMinSuccess extends IntOpt:
17+
val default = 100
18+
val names = Set("bla")
19+
val help = "bla"
20+
21+
val opts = List(OptMinSuccess) // warn
22+
val a = "FirstParser"

0 commit comments

Comments
 (0)