Is there any purpose for a final object? None of the other uses of final seem to make any sense here:
- preventing a type from being extended (as in
final class) doesn't make sense sinceobject's can't be extended anyways - preventing a member from being overriden (as in
final val) doesn't make sense sinceobjectmembers are alreadyfinal
Are Foo1 and Foo2 different in any way? Perhaps in some nested context...?
final object Foo1 { val i = 7 }
object Foo2 { val i = 7 }