File tree 3 files changed +22
-19
lines changed
compiler/src/dotty/tools/dotc/transform/init
3 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import scala.collection.mutable
29
29
import scala .annotation .tailrec
30
30
import scala .annotation .constructorOnly
31
31
import dotty .tools .dotc .core .Flags .AbstractOrTrait
32
- import Decorators .*
33
32
34
33
/** Check initialization safety of static objects
35
34
*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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 : // warn
17
+ val default = 100
18
+ val names = Set (" bla" )
19
+ val help = " bla"
20
+
21
+ val opts = List (OptMinSuccess )
22
+ val a = " FirstParser"
You can’t perform that action at this time.
0 commit comments