File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ object Printers {
17
17
val checks : Printer = noPrinter
18
18
val config : Printer = noPrinter
19
19
val cyclicErrors : Printer = noPrinter
20
- val debug = noPrinter // no type annotion here to force inlining
20
+ val debug = noPrinter // no type annotation here to force inlining
21
21
val derive : Printer = noPrinter
22
22
val dottydoc : Printer = noPrinter
23
23
val exhaustivity : Printer = noPrinter
Original file line number Diff line number Diff line change
1
+ // Checks that divergence checking works before going into
2
+ // recursions.
3
+ case class E (x : E | Null )
4
+
5
+ implied e for E (null )
6
+
7
+ object Test extends App {
8
+
9
+ implied f given (e : E ) for E (e)
10
+
11
+ assert(the[E ].toString == " E(E(null))" )
12
+
13
+ }
You can’t perform that action at this time.
0 commit comments