Skip to content

Commit 11cfc37

Browse files
committed
Change some tests' outputs re: evaluating erased function parameter for function expressions
Consider the following ``` def x = println("impure") 0 def f(erased a: Int) = 0 // first try f(x) // second try { println("block"); f }(x) ``` Previously, we do not print `impure` in the first try, but we do on the second try. This is an inconsistency that the current compiler fixed. Both now do not evaluate `x`.
1 parent aa4fd6d commit 11cfc37

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
block
2-
x
32
foo
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
x
21
foo
3-
x
42
bar

0 commit comments

Comments
 (0)