Skip to content

Commit 0492367

Browse files
fixed positive test case
1 parent c553fd2 commit 0492367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg-custom-args/fatal-warnings/i13011.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class i13011 {
88

99
def firstDigitIsEven(n: Int): Boolean = if n % 10 == n then n % 2 == 0 else firstDigitIsEven(n / 10)
1010

11-
lazy val simple4: String = if firstDigitIsEven(22) then this.simple4 else "a" // error
11+
lazy val simple4: String = if firstDigitIsEven(22) then this.simple4 else "a" // ok
1212

1313
lazy val simple5: String = identity(this.simple5) // error
1414

0 commit comments

Comments
 (0)