Skip to content

Commit

Permalink
Update failing minimized test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzeXing committed Nov 8, 2023
1 parent 2d1d8aa commit 2c582c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/init-global/neg/i18628.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ object Test:
class Box(val x: Int)

def recur(a: => Box, b: => Box): Int =
a.x + recur(a, b) + b.x // error
a.x + recur(a, b) + b.x // error // error

recur(Box(1), Box(2))
2 changes: 1 addition & 1 deletion tests/init-global/neg/i18628_3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ object Test:
class Box(val x: Int)

def recur(a: => Box, b: => Box): Int =
a.x + recur(a: @widen(5), b: @widen(5)) + b.x // error
a.x + recur(a: @widen(5), b: @widen(5)) + b.x // error // error

recur(Box(1), Box(2))

0 comments on commit 2c582c3

Please sign in to comment.