Skip to content
Snippets Groups Projects
Commit 3068e6ec authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Fix PrettyPrinter, LetDef cannot contain 0 functions anymore

parent 738188ea
Branches
Tags
No related merge requests found
......@@ -11,6 +11,7 @@ import Extractors._
import PrinterHelpers._
import ExprOps.{isListLiteral, simplestValue}
import Expressions._
import Constructors._
import Types._
import org.apache.commons.lang3.StringEscapeUtils
......@@ -92,7 +93,7 @@ class PrettyPrinter(opts: PrinterOptions,
case LetDef(a::q,body) =>
p"""|$a
|${LetDef(q, body)}"""
|${letDef(q, body)}"""
case LetDef(Nil,body) =>
p"""$body"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment