File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum Exp {
12
12
object Compiler {
13
13
import Exp ._
14
14
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 {
16
16
case Num (n) =>
17
17
Expr (n)
18
18
case Plus (e1, e2) =>
@@ -31,6 +31,6 @@ object Example {
31
31
val exp = Plus (Plus (Num (2 ), Var (" x" )), Num (4 ))
32
32
val letExp = Let (" x" , Num (3 ), exp)
33
33
34
- Compiler .compile(letExp, Map .empty)(given QuoteContext .macroContext) // error
34
+ Compiler .compile(letExp, Map .empty)(given QuoteContext .macroContext) // error // error
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum Exp {
12
12
object Compiler {
13
13
import Exp ._
14
14
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 {
16
16
case Num (n) =>
17
17
Expr (n)
18
18
case Plus (e1, e2) =>
@@ -31,6 +31,6 @@ object Example {
31
31
val exp = Plus (Plus (Num (2 ), Var (" x" )), Num (4 ))
32
32
val letExp = Let (" x" , Num (3 ), exp)
33
33
34
- Compiler .compile(letExp, Map .empty)(given (??? : QuoteContext ))
34
+ Compiler .compile(letExp, Map .empty)(given (??? : QuoteContext )) // error
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments