diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/bug2213.check | 15 | ||||
-rw-r--r-- | test/files/neg/bug2213.scala | 11 | ||||
-rw-r--r-- | test/files/neg/bug856.check | 4 |
3 files changed, 29 insertions, 1 deletions
diff --git a/test/files/neg/bug2213.check b/test/files/neg/bug2213.check new file mode 100644 index 0000000000..b24f7dc554 --- /dev/null +++ b/test/files/neg/bug2213.check @@ -0,0 +1,15 @@ +bug2213.scala:9: error: class C needs to be abstract, since: +value y in class A of type Int is not defined +value x in class A of type Int is not defined +method g in class A of type => Int is not defined +method f in class A of type => Int is not defined +class C extends A {} + ^ +bug2213.scala:11: error: object creation impossible, since: +value y in class A of type Int is not defined +value x in class A of type Int is not defined +method g in class A of type => Int is not defined +method f in class A of type => Int is not defined +object Q extends A { } + ^ +two errors found diff --git a/test/files/neg/bug2213.scala b/test/files/neg/bug2213.scala new file mode 100644 index 0000000000..af1df3ccfe --- /dev/null +++ b/test/files/neg/bug2213.scala @@ -0,0 +1,11 @@ +abstract class A { + def f: Int + def g: Int + + val x: Int + val y: Int +} + +class C extends A {} + +object Q extends A { }
\ No newline at end of file diff --git a/test/files/neg/bug856.check b/test/files/neg/bug856.check index e1d0801c5f..168855d6a2 100644 --- a/test/files/neg/bug856.check +++ b/test/files/neg/bug856.check @@ -1,4 +1,6 @@ -bug856.scala:3: error: class ComplexRect needs to be abstract, since method _2 in trait Product2 of type => Double is not defined +bug856.scala:3: error: class ComplexRect needs to be abstract, since: +method _2 in trait Product2 of type => Double is not defined +method canEqual in trait Equals of type (that: Any)Boolean is not defined class ComplexRect(val _1:Double, _2:Double) extends Complex { ^ one error found |