You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
It is not possible to use a trait made in RB in another entity in the same RB environment.
(I cannot create a RBTrait named "TMyTrait", not install in the system yet, and use it in a class "MyClass")
We got an error with asTraitComposition
You'll notice the method smaccDefineTrait: which is a copy of RBNamespace>>#defineClass: but adapted to create RBTrait (because their is no method to create RBTrait too.
To avoid searching, here is the implementation of RBNamespace>>#smaccDefineTrait: for Pharo12
Bug description
It is not possible to use a trait made in RB in another entity in the same RB environment.
(I cannot create a RBTrait named "TMyTrait", not install in the system yet, and use it in a class "MyClass")
We got an error with
asTraitComposition
This feature is used by the SmaCC project.
To Reproduce
Execute the following code
You'll notice the method
smaccDefineTrait:
which is a copy ofRBNamespace>>#defineClass:
but adapted to create RBTrait (because their is no method to create RBTrait too.To avoid searching, here is the implementation of
RBNamespace>>#smaccDefineTrait:
for Pharo12Expected behavior
I believe we should be able to deal with Trait easily in RB and the asTraitComposition should work
Version information:
Expected development cost
I don't know, but I can help to reproduce the issue.
The text was updated successfully, but these errors were encountered: