framework icon indicating copy to clipboard operation
framework copied to clipboard

User with MetaMegaProtoUser and CRUDify do not compile

Open indrajitr opened this issue 13 years ago • 1 comments

In Lift version 2.9.0 when using MetaMegaProtoUser and Crudify together in an user object it doesn't compile.

There are conflicts with same def/val names used by both Traits.

User definition:

...
line 136:  object User extends User with MetaMegaProtoUser[User] with CRUDify[Long, User] {_ 
...

Error:

.../model/User.scala:136: overriding type FieldPointerType in trait MetaMegaProtoUser, which equals net.liftweb.mapper.MappedField[_, ingo.model.User.TheUserType];
[error]  type FieldPointerType in trait CRUDify, which equals net.liftweb.mapper.MappedField[_, ingo.model.User] needs `override' modifier;
[error]  other members with override errors are: computeFieldFromPointer, buildFieldBridge, editPath, menus
[error] object User extends User with MetaMegaProtoUser[User] with CRUDify[Long, User]{
[error]        ^
[error] one error found

indrajitr avatar Dec 23 '11 08:12 indrajitr

Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/1172

github-importer avatar Feb 19 '12 21:02 github-importer