Skip to content

Commit 6b1432c

Browse files
committed
Fix code that bug due to silent implicit conversion
1 parent acc662e commit 6b1432c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
13
2+
29
3+
61
14
125

tests/run-with-compiler/quote-ackermann-1.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import dotty.tools.dotc.quoted.Toolbox._
55
object Test {
66

77
def main(args: Array[String]): Unit = {
8-
println(ackermann(3)(4).run)
8+
val ack3 = ackermann(3).run
9+
println(ack3(1))
10+
println(ack3(2))
11+
println(ack3(3))
12+
println(ack3(4))
913
}
1014

1115
def ackermann(m: Int): Expr[Int => Int] = {

0 commit comments

Comments
 (0)