diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-04 14:36:14 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-04 17:36:31 -0800 |
commit | c6a783ac089d8cf5a60a98946af5e80aff5a7d32 (patch) | |
tree | 2f081bad580c0fcb45b2a0ecb0e4bcc225879bbb /test/files/speclib/instrumented.jar.desired.sha1 | |
parent | 513710c5277ef8870ba3f5c7c9bebe40068ce4af (diff) | |
download | scala-c6a783ac089d8cf5a60a98946af5e80aff5a7d32.tar.gz scala-c6a783ac089d8cf5a60a98946af5e80aff5a7d32.tar.bz2 scala-c6a783ac089d8cf5a60a98946af5e80aff5a7d32.zip |
Making AnyVal into a class instead of a trait.
-- traits can extend Any, AnyRef, or AnyVal
-- classes can extend AnyRef or AnyVal but not Any.
This breaks reflection for the moment as it smuggles AnyVal so far
downstream that it's reflecting its way into bytecode (or something)
but the following test case goes five for six as anticipated.
trait Foo1 extends Any
trait Foo2 extends AnyVal
trait Foo3 extends AnyRef
class Bar1 extends Any // fail
@inline class Bar2 extends AnyVal
class Bar3 extends AnyRef
Eliminated various hijinx from definitions.
Diffstat (limited to 'test/files/speclib/instrumented.jar.desired.sha1')
0 files changed, 0 insertions, 0 deletions