File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import language.implicitConversions
44
55object Texts {
66
7- abstract class Text {
7+ sealed abstract class Text {
88
99 protected def indentMargin = 2
1010
@@ -46,9 +46,11 @@ object Texts {
4646 case Str (s1, lines2) => Str (s1 + s2, lines1 union lines2)
4747 case Fluid (Str (s1, lines2) :: prev) => Fluid (Str (s1 + s2, lines1 union lines2) :: prev)
4848 case Fluid (relems) => Fluid (that :: relems)
49+ case Vertical (_) => throw new IllegalArgumentException (" Unexpected Vertical.appendToLastLine" )
4950 }
5051 case Fluid (relems) =>
5152 (this /: relems.reverse)(_ appendToLastLine _)
53+ case Vertical (_) => throw new IllegalArgumentException (" Unexpected Text.appendToLastLine(Vertical(...))" )
5254 }
5355
5456 private def appendIndented (that : Text )(width : Int ): Text =
You can’t perform that action at this time.
0 commit comments