File tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 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
2929import scala .annotation .tailrec
3030import scala .annotation .constructorOnly
3131import dotty .tools .dotc .core .Flags .AbstractOrTrait
32- import Decorators .*
3332
3433/** Check initialization safety of static objects
3534 *
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