Skip to content

Commit 20e2ca3

Browse files
author
EnzeXing
committed
move test
1 parent 9b6184b commit 20e2ca3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/init-global/pos/i18628.scala renamed to tests/init-global/neg/i18628.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ object Test:
22
class Box(val x: Int)
33

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

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

tests/init-global/pos/i18628_2.scala renamed to tests/init-global/neg/i18628_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ object Test:
22
class Box(val x: Int)
33

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

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

tests/init-global/pos/i18628_3.scala renamed to tests/init-global/neg/i18628_3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ object Test:
44
class Box(val x: Int)
55

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

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

0 commit comments

Comments
 (0)