summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-11-04 16:04:30 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-11-04 16:04:30 +0000
commit4fff3aad3d1b567179cf14eb0f1adbdb181acf1f (patch)
treebea1b55055ea708c79e458bf717a2afbdc369713 /src
parent26877991ed96534fdfdddc81cd112ca81a779c13 (diff)
downloadscala-4fff3aad3d1b567179cf14eb0f1adbdb181acf1f.tar.gz
scala-4fff3aad3d1b567179cf14eb0f1adbdb181acf1f.tar.bz2
scala-4fff3aad3d1b567179cf14eb0f1adbdb181acf1f.zip
Fixed the test that broke because of the
change in the error message. Adjusted the error message slightly because saying that a "def needs to be stable" does not make much sense because you can't make defs stable.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 789bc71d45..e18b3f6130 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -198,7 +198,7 @@ abstract class RefChecks extends InfoTransform {
(other hasFlag ACCESSOR) && other.accessed.isVariable && !other.accessed.hasFlag(LAZY)) {
overrideError("cannot override a mutable variable")
} else if (other.isStable && !member.isStable) { // (1.4)
- overrideError("needs to be stable")
+ overrideError("is not stable")
} else if (member.isValue && (member hasFlag LAZY) &&
other.isValue && !other.isSourceMethod && !other.isDeferred && !(other hasFlag LAZY)) {
overrideError("cannot override a concrete non-lazy value")