We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555cafa commit 005ad50Copy full SHA for 005ad50
compiler/src/dotty/tools/dotc/config/Printers.scala
@@ -17,7 +17,7 @@ object Printers {
17
val checks: Printer = noPrinter
18
val config: Printer = noPrinter
19
val cyclicErrors: Printer = noPrinter
20
- val debug = noPrinter // no type annotion here to force inlining
+ val debug = noPrinter // no type annotation here to force inlining
21
val derive: Printer = noPrinter
22
val dottydoc: Printer = noPrinter
23
val exhaustivity: Printer = noPrinter
tests/run/implied-divergence.scala
@@ -0,0 +1,13 @@
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
+}
0 commit comments