From b94917a2df2608eeaf0b0729b9175a8542340d12 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 25 Sep 2012 17:31:22 +0200 Subject: Removes discrepancy between SIP 15 and compiler There was a discrepancy in that the compiler alternatively accepts a val parameter or an unbox method for a value class but SIP 15 does not mention the unbox method. I commented out the line in the compiler that does it. --- src/reflect/scala/reflect/internal/Symbols.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/reflect/scala/reflect/internal/Symbols.scala b/src/reflect/scala/reflect/internal/Symbols.scala index a0e28bf735..20fcb630bb 100644 --- a/src/reflect/scala/reflect/internal/Symbols.scala +++ b/src/reflect/scala/reflect/internal/Symbols.scala @@ -2936,7 +2936,7 @@ trait Symbols extends api.Symbols { self: SymbolTable => } override def derivedValueClassUnbox = - (info.decl(nme.unbox)) orElse + // (info.decl(nme.unbox)) orElse uncomment once we accept unbox methods (info.decls.find(_ hasAllFlags PARAMACCESSOR | METHOD) getOrElse NoSymbol) -- cgit v1.2.3