aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-19 13:12:15 +0100
committerVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-19 13:12:15 +0100
commit70f5d93898095aa47b8f7bb33de00d415888dfcf (patch)
treefd8cb35d903373986c9f7cf01b3d446694bee73c /tests/pos
parentff95503eba99e542605cb085894f35f53c4ef5b8 (diff)
downloaddotty-70f5d93898095aa47b8f7bb33de00d415888dfcf.tar.gz
dotty-70f5d93898095aa47b8f7bb33de00d415888dfcf.tar.bz2
dotty-70f5d93898095aa47b8f7bb33de00d415888dfcf.zip
Neg tests: remove // error from pos tests
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/t0273.scala2
-rw-r--r--tests/pos/t1279a.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/pos/t0273.scala b/tests/pos/t0273.scala
index 0fba8a8a4..10f426828 100644
--- a/tests/pos/t0273.scala
+++ b/tests/pos/t0273.scala
@@ -2,6 +2,6 @@ class A
object Test {
def a = () => ()
-def a[T] = (p:A) => () // error
+def a[T] = (p:A) => ()
def main(args: Array[String]) = ()
}
diff --git a/tests/pos/t1279a.scala b/tests/pos/t1279a.scala
index 78633ec3c..3edd9b2c4 100644
--- a/tests/pos/t1279a.scala
+++ b/tests/pos/t1279a.scala
@@ -4,7 +4,7 @@ abstract class M {
type T
final type selfType = M {type T <: self.T}
- type actualSelfType >: self.type <: selfType // error: this no longer compiles because self.type is not a subtype of selfType
+ type actualSelfType >: self.type <: selfType
def next: selfType