{"action":"opened","issue":{"url":"https://api.github.com/repos/pocorall/scaloid/issues/138","labels_url":"https://api.github.com/repos/pocorall/scaloid/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/pocorall/scaloid/issues/138/comments","events_url":"https://api.github.com/repos/pocorall/scaloid/issues/138/events","html_url":"https://github.com/pocorall/scaloid/issues/138","id":106023389,"number":138,"title":"Broken inheritance between S[...] objects (like SView or SLinearlayout)","user":{"login":"AntoineMorand","id":9538790,"avatar_url":"https://avatars.githubusercontent.com/u/9538790?v=3","gravatar_id":"","url":"https://api.github.com/users/AntoineMorand","html_url":"https://github.com/AntoineMorand","followers_url":"https://api.github.com/users/AntoineMorand/followers","following_url":"https://api.github.com/users/AntoineMorand/following{/other_user}","gists_url":"https://api.github.com/users/AntoineMorand/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoineMorand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoineMorand/subscriptions","organizations_url":"https://api.github.com/users/AntoineMorand/orgs","repos_url":"https://api.github.com/users/AntoineMorand/repos","events_url":"https://api.github.com/users/AntoineMorand/events{/privacy}","received_events_url":"https://api.github.com/users/AntoineMorand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-11T14:38:08Z","updated_at":"2015-09-11T14:38:08Z","closed_at":null,"body":"Hello,\r\n\r\nWhen i tried to create a general trait to mix with Views:\r\n```scala\r\ntrait CleverTraitToMix extends SView {\r\n  backgroundColor = 0xFFFF0000\r\n}\r\n\r\nclass MixedClass extends SLinearLayout with CleverTraitToMix\r\n```\r\n\r\nI encountered the following compilation error telling me that there is no \"parent-child\" relationship between SView and SLinearLayout as there is between LinearLayout and View in the standard android hierarchy:\r\n\r\n```\r\n[error] D:\\AutoConsult\\src\\e_consult\\formBuilder\\CleverTraitToMix.scala:10: illegal inheritance; superclass SRelativeLayout\r\n[error]  is not a subclass of the superclass SView\r\n[error]  of the mixin trait CleverTraitToMix\r\n[error] class MixedClass extends SRelativeLayout with CleverTraitToMix {\r\n```\r\nWould it be possible to restore this inheritance relation? Alternatively, is there another way to make mixins between S[...] objects?"}}