Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

Commit

Permalink
Issue #773. scala 2.7.7 friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffrocket committed Dec 13, 2010
1 parent 04f9386 commit c3dc36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ trait MetaRecord[BaseRecord <: Record[BaseRecord]] {

fieldList = {
val ordered = fieldOrder.flatMap(f => tArray.find(_.metaField == f))
ordered ++ (tArray -- ordered)
ordered ++ (tArray.toList -- ordered)
}

fieldMap = Map() ++ fieldList.map(i => (i.name, i))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ object RecordSpecs extends Specification {
"basic record" should {
"order fields according to fieldOrder" in {
BasicTestRecord.metaFields must_== List(BasicTestRecord.field2, BasicTestRecord.field1, BasicTestRecord.field3)
()
}
}
}
Expand Down

0 comments on commit c3dc36e

Please sign in to comment.