Permalink
Browse files

Tweak to avoid value classes in modifier check.

  • Loading branch information...
paulp committed May 14, 2012
1 parent 0d51e85 commit 5963be026e32a3cf391939f333d45d0dd40edfb3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1423,7 +1423,7 @@ trait Namers extends MethodSynthesis {
fail(LazyAndEarlyInit)
if (sym.info.typeSymbol == FunctionClass(0) && sym.isValueParameter && sym.owner.isCaseClass)
fail(ByNameParameter)
- if (sym.isTrait && sym.isFinal)
+ if (sym.isTrait && sym.isFinal && !sym.isSubClass(AnyValClass))
checkNoConflict(ABSTRACT, FINAL)
if (sym.isDeferred) {

0 comments on commit 5963be0

Please sign in to comment.