Skip to content

Commit 2230a07

Browse files
committed
Adjust assertions in test
1 parent 05dd773 commit 2230a07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/neg-custom-args/fatal-warnings/i15503-scala2/scala2-t11681.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ trait Anonymous {
100100
trait Context[A]
101101
trait Implicits {
102102
def f[A](implicit ctx: Context[A]) = answer // error
103-
def g[A: Context] = answer // error
103+
def g[A: Context] = answer // OK
104104
}
105-
class Bound[A: Context] // error
105+
class Bound[A: Context] // OK
106106
object Answers {
107107
def answer: Int = 42
108108
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ package foo.scala2.tests:
7575

7676
object Types {
7777
def l1() = {
78-
object HiObject { def f = this } // error
78+
object HiObject { def f = this } // OK
7979
class Hi { // error
8080
def f1: Hi = new Hi
8181
def f2(x: Hi) = x

0 commit comments

Comments
 (0)