Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Jul 20, 2023
1 parent ca7a211 commit b242cae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,22 +1030,22 @@ class Scala31RuntimeEvaluatorTests extends RuntimeEvaluatorTests(ScalaVersion.`3
|object Main {
| def main(args: Array[String]): Unit = {
| val x = "x1"
| def m(): String = {
| def m1(): String = {
| println(x) // captures x = "x1"
| val y = {
| val x = "x2"
| val z = {
| val x = "x3"
| def m(): String = {
| def m2(): String = {
| x // captures x = "x3"
| }
| m()
| m2()
| }
| z
| }
| y
| }
| println(m())
| println(m1())
| }
|}
|""".stripMargin
Expand Down

0 comments on commit b242cae

Please sign in to comment.