Fix #11997: Declare `object cons` before `class Cons`.
Fix #11997: Declare `object cons` before `class Cons`.

lrytz/scala,lrytz/scala,lrytz/scala,lrytz/scala,scala/scala,lrytz/scala,scala/scala,scala/scala,scala/scala,lrytz/scala,scala/scala,scala/scala