File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum Exp {
1212object Compiler {
1313 import Exp ._
1414
15- inline def compile (e : Exp , env : Map [String , Expr [Int ]])(given ctx : QuoteContext ): Expr [Int ] = inline e match { // error
15+ inline def compile (e : Exp , env : Map [String , Expr [Int ]])(given ctx : QuoteContext ): Expr [Int ] = inline e match {
1616 case Num (n) =>
1717 Expr (n)
1818 case Plus (e1, e2) =>
@@ -31,6 +31,6 @@ object Example {
3131 val exp = Plus (Plus (Num (2 ), Var (" x" )), Num (4 ))
3232 val letExp = Let (" x" , Num (3 ), exp)
3333
34- Compiler .compile(letExp, Map .empty)(given QuoteContext .macroContext) // error
34+ Compiler .compile(letExp, Map .empty)(given QuoteContext .macroContext) // error // error
3535 }
3636}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum Exp {
1212object Compiler {
1313 import Exp ._
1414
15- inline def compile (e : Exp , env : Map [String , Expr [Int ]])(given ctx : QuoteContext ): Expr [Int ] = inline e match { // error
15+ inline def compile (e : Exp , env : Map [String , Expr [Int ]])(given ctx : QuoteContext ): Expr [Int ] = inline e match {
1616 case Num (n) =>
1717 Expr (n)
1818 case Plus (e1, e2) =>
@@ -31,6 +31,6 @@ object Example {
3131 val exp = Plus (Plus (Num (2 ), Var (" x" )), Num (4 ))
3232 val letExp = Let (" x" , Num (3 ), exp)
3333
34- Compiler .compile(letExp, Map .empty)(given (??? : QuoteContext ))
34+ Compiler .compile(letExp, Map .empty)(given (??? : QuoteContext )) // error
3535 }
3636}
You can’t perform that action at this time.
0 commit comments