Skip to content

Commit

Permalink
Removes discrepancy between SIP 15 and compiler
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
odersky committed Sep 25, 2012
1 parent ebeb368 commit b94917a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/internal/Symbols.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b94917a

Please sign in to comment.