We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05dd773 commit 2230a07Copy full SHA for 2230a07
tests/neg-custom-args/fatal-warnings/i15503-scala2/scala2-t11681.scala
@@ -100,9 +100,9 @@ trait Anonymous {
100
trait Context[A]
101
trait Implicits {
102
def f[A](implicit ctx: Context[A]) = answer // error
103
- def g[A: Context] = answer // error
+ def g[A: Context] = answer // OK
104
}
105
-class Bound[A: Context] // error
+class Bound[A: Context] // OK
106
object Answers {
107
def answer: Int = 42
108
tests/neg-custom-args/fatal-warnings/i15503b.scala
@@ -75,7 +75,7 @@ package foo.scala2.tests:
75
76
object Types {
77
def l1() = {
78
- object HiObject { def f = this } // error
+ object HiObject { def f = this } // OK
79
class Hi { // error
80
def f1: Hi = new Hi
81
def f2(x: Hi) = x
0 commit comments