Skip to content

Commit 631b636

Browse files
committed
broken tests -- for check file diffing ease
1 parent 9ff7869 commit 631b636

File tree

8 files changed

+16
-21
lines changed

8 files changed

+16
-21
lines changed

test/files/neg/anytrait.check

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
anytrait.scala:3: error: field definition is not allowed in universal trait extending from class Any
2-
var x = 1
3-
^
41
anytrait.scala:5: error: this statement is not allowed in universal trait extending from class Any
52
{ x += 1 }
63
^
7-
two errors found
4+
one error found

test/files/neg/delayed-init-ref.check

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ delayed-init-ref.scala:28: warning: trait DelayedInit in package scala is deprec
88
See the release notes for more details: https://github.com/scala/scala/releases/tag/v2.11.0-RC1
99
trait Before extends DelayedInit {
1010
^
11-
delayed-init-ref.scala:40: warning: Selecting value foo from trait UserContext, which extends scala.DelayedInit, is likely to yield an uninitialized value
12-
println({locally(()); this}.foo) // warn (spurious, but we can't discriminate)
13-
^
1411
error: No warnings can be incurred under -Xfatal-warnings.
15-
four warnings found
12+
three warnings found
1613
one error found

test/files/neg/t1960.check

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
t1960.scala:5: error: parameter 'p' requires field but conflicts with method p in trait TBase
1+
t1960.scala:5: error: class Aclass needs to be abstract, since variable p in trait TBase of type Int is not defined
2+
(Note that variables need to be initialized to be defined)
23
class Aclass (p: Int) extends TBase { def g() { f(p) } }
3-
^
4+
^
45
one error found

test/files/neg/t562.check

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
t562.scala:10: error: super may not be used on value y
1+
t562.scala:10: error: super may not be used on <none>
22
override val y = super.y;
33
^
44
one error found

test/files/neg/t6276.check

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
t6276.scala:4: warning: method a in class C does nothing other than call itself recursively
22
def a: Any = a // warn
33
^
4-
t6276.scala:5: warning: value b in class C does nothing other than call itself recursively
5-
val b: Any = b // warn
6-
^
74
t6276.scala:7: warning: method c in class C does nothing other than call itself recursively
85
def c: Any = this.c // warn
96
^
@@ -17,5 +14,5 @@ t6276.scala:22: warning: method a does nothing other than call itself recursivel
1714
def a = a // warn
1815
^
1916
error: No warnings can be incurred under -Xfatal-warnings.
20-
6 warnings found
17+
5 warnings found
2118
one error found

test/files/run/bugs.check

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ C
9191
>>> bug 396
9292

9393
<<< bug 399
94-
a
94+
Exception in thread "Thread[main,5,main]" java.lang.AbstractMethodError: Bug399Test$G$1.Bug399Test$C$1$_setter_$x$1_$eq(Ljava/lang/String;)V
9595
>>> bug 399
9696

97+
98+
1 error

test/files/run/t6733.check

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
method $init$: isPrivateThis = false, isProtectedThis = false
22
value pri1a: isPrivateThis = true, isProtectedThis = false
33
method pri2a: isPrivateThis = true, isProtectedThis = false
4-
variable pri3a: isPrivateThis = true, isProtectedThis = false
4+
method pri3a: isPrivateThis = true, isProtectedThis = false
5+
method pri3a_=: isPrivateThis = true, isProtectedThis = false
56
value pri4a: isPrivateThis = true, isProtectedThis = false
67
lazy value pri4a: isPrivateThis = true, isProtectedThis = false
78
type Pri5a: isPrivateThis = true, isProtectedThis = false
89
class Pri6: isPrivateThis = true, isProtectedThis = false
910
trait Pri7: isPrivateThis = true, isProtectedThis = false
1011
object Pri8: isPrivateThis = true, isProtectedThis = false
1112
value pro1a: isPrivateThis = false, isProtectedThis = true
12-
value pro1a: isPrivateThis = true, isProtectedThis = false
1313
value pro1b: isPrivateThis = false, isProtectedThis = true
1414
method pro2a: isPrivateThis = false, isProtectedThis = true
1515
method pro2b: isPrivateThis = false, isProtectedThis = true
1616
method pro3a: isPrivateThis = false, isProtectedThis = true
1717
method pro3a_=: isPrivateThis = false, isProtectedThis = true
18-
variable pro3a: isPrivateThis = true, isProtectedThis = false
1918
method pro3b: isPrivateThis = false, isProtectedThis = true
2019
method pro3b_=: isPrivateThis = false, isProtectedThis = true
2120
value pro4a: isPrivateThis = false, isProtectedThis = true
@@ -25,3 +24,5 @@ type Pro5b: isPrivateThis = false, isProtectedThis = true
2524
class Pro6: isPrivateThis = false, isProtectedThis = true
2625
trait Pro7: isPrivateThis = false, isProtectedThis = true
2726
object Pro8: isPrivateThis = false, isProtectedThis = true
27+
method pri1a_=: isPrivateThis = false, isProtectedThis = false
28+
method Foo$_setter_$pro1a_=: isPrivateThis = false, isProtectedThis = false

test/files/run/t7533.check

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ type T2 => false
1313
trait T => true
1414
method $init$ => false
1515
value z1 => true
16-
value z2 => false
17-
value z2 => false
16+
value z2 => true
1817
method w1 => true
1918
method w2 => false
2019
type U1 => true
2120
type U2 => false
21+
method T$_setter_$z2_= => true
2222
=======class D=======
2323
class D => false
2424
constructor D => false

0 commit comments

Comments
 (0)