diff options
author | Paul Phillips <paulp@improving.org> | 2010-07-03 00:56:00 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-07-03 00:56:00 +0000 |
commit | 39e4641ec932965eaa9ef30b3954aef3f0579fa5 (patch) | |
tree | 6dce13c4da159d528826807c5cee1ff7b844fd3d /src/library | |
parent | 322e856f132c4ee8ac651848a041b693f830371b (diff) | |
download | scala-39e4641ec932965eaa9ef30b3954aef3f0579fa5.tar.gz scala-39e4641ec932965eaa9ef30b3954aef3f0579fa5.tar.bz2 scala-39e4641ec932965eaa9ef30b3954aef3f0579fa5.zip |
When compilation fails because of an unimplemen...
When compilation fails because of an unimplemented abstract var, give
a more precise error message about what happened. Also avoid issuing
the same error twice because neither getter nor setter is implemented.
Closes #36, review by rytz.
Diffstat (limited to 'src/library')
-rwxr-xr-x | src/library/scala/reflect/generic/Symbols.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/reflect/generic/Symbols.scala b/src/library/scala/reflect/generic/Symbols.scala index 2f5e0624ab..f1226c7e19 100755 --- a/src/library/scala/reflect/generic/Symbols.scala +++ b/src/library/scala/reflect/generic/Symbols.scala @@ -119,6 +119,7 @@ trait Symbols { self: Universe => def isTrait: Boolean = isClass && hasFlag(TRAIT) // refined later for virtual classes. final def hasDefault = isParameter && hasFlag(DEFAULTPARAM) final def isAbstractClass = isClass && hasFlag(ABSTRACT) + // XXX This is unlikely to be correct: it's not looking for the ABSOVERRIDE flag? final def isAbstractOverride = isTerm && hasFlag(ABSTRACT) && hasFlag(OVERRIDE) final def isBridge = hasFlag(BRIDGE) final def isCase = hasFlag(CASE) |