Skip to content

Commit 70f5d93

Browse files
committed
Neg tests: remove // error from pos tests
1 parent ff95503 commit 70f5d93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/pos/t0273.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ class A
22

33
object Test {
44
def a = () => ()
5-
def a[T] = (p:A) => () // error
5+
def a[T] = (p:A) => ()
66
def main(args: Array[String]) = ()
77
}

tests/pos/t1279a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ abstract class M {
44

55
type T
66
final type selfType = M {type T <: self.T}
7-
type actualSelfType >: self.type <: selfType // error: this no longer compiles because self.type is not a subtype of selfType
7+
type actualSelfType >: self.type <: selfType
88

99
def next: selfType
1010

0 commit comments

Comments
 (0)