Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 50fd2e8

Browse files
committed
Restore adapt classes tests
1 parent b5b0a92 commit 50fd2e8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎tests/neg-custom-args/qualified-types/adapt_neg.scala‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def test: Unit =
1212
val v3: {v: Int with v == x + 1} = x + 2 // error
1313
val v4: {v: Int with v == f(x)} = g(x) // error
1414
val v5: {v: Int with v == g(x)} = f(x) // error
15-
//val v6: {v: Int with v == IntBox(x)} = IntBox(x) // Not implemented
16-
//val v7: {v: Int with v == Box(x)} = Box(x) // Not implemented
15+
val v6: {v: IntBox with v == IntBox(x)} = IntBox(x+1) // error
16+
val v7: {v: Box[Int] with v == Box(x)} = Box(x+1) // error
1717
val v8: {v: Int with v == x + f(x)} = x + g(x) // error
1818
val v9: {v: Int with v == x + g(x)} = x + f(x) // error
1919
val v10: {v: Int with v == f(x + 1)} = f(x + 2) // error
2020
val v11: {v: Int with v == g(x + 1)} = g(x + 2) // error
21-
//val v12: {v: Int with v == IntBox(x + 1)} = IntBox(x + 1) // Not implemented
22-
//val v13: {v: Int with v == Box(x + 1)} = Box(x + 1) // Not implemented
21+
val v12: {v: IntBox with v == IntBox(x + 1)} = IntBox(x) // error
22+
val v13: {v: Box[Int] with v == Box(x + 1)} = Box(x) // error

‎tests/pos-custom-args/qualified-types/adapt.scala‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def test: Unit =
1212
val v1: {v: Int with v == x + 1} = x + 1
1313
val v2: {v: Int with v == f(x)} = f(x)
1414
val v3: {v: Int with v == g(x)} = g(x)
15-
//val v6: {v: Int with v == IntBox(x)} = IntBox(x) // Not implemented
16-
//val v7: {v: Int with v == Box(x)} = Box(x) // Not implemented
17-
val v4: {v: Int with v == x + f(x)} = x + f(x)
18-
val v5: {v: Int with v == x + g(x)} = x + g(x)
19-
val v6: {v: Int with v == f(x + 1)} = f(x + 1)
20-
val v7: {v: Int with v == g(x + 1)} = g(x + 1)
21-
//val v12: {v: Int with v == IntBox(x + 1)} = IntBox(x + 1) // Not implemented
22-
//val v13: {v: Int with v == Box(x + 1)} = Box(x + 1) // Not implemented
15+
val v4: {v: IntBox with v == IntBox(x)} = IntBox(x) // Not implemented
16+
val v5: {v: Box[Int] with v == Box(x)} = Box(x) // Not implemented
17+
val v6: {v: Int with v == x + f(x)} = x + f(x)
18+
val v7: {v: Int with v == x + g(x)} = x + g(x)
19+
val v8: {v: Int with v == f(x + 1)} = f(x + 1)
20+
val v9: {v: Int with v == g(x + 1)} = g(x + 1)
21+
val v12: {v: IntBox with v == IntBox(x + 1)} = IntBox(x + 1) // Not implemented
22+
val v13: {v: Box[Int] with v == Box(x + 1)} = Box(x + 1) // Not implemented

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /