Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MooseQueryResult>>intersection: is broken #786

Closed
seandenigris opened this issue Aug 3, 2015 · 2 comments
Closed

MooseQueryResult>>intersection: is broken #786

seandenigris opened this issue Aug 3, 2015 · 2 comments
Labels

Comments

@seandenigris
Copy link
Contributor

Originally reported on Google Code with ID 786

calling intersection between two MooseQueryResult produces an error because "MooseQueryResult
is not a variable type"

This is raised in basicNew:

A possible workaround is to redefine MooseQueryResult>>intersection: aCollection
    | result |

    result := self class new.

    aCollection do: [ :each|
        ((self includes: each) and: [(result includes: each) not])
                ifTrue: [ result add: each]].

    ^ result

But it might not be the best solution since I assume basicNew: might be called from
other methods ...

Reported by anquetil.nicolas on 2012-03-30 14:23:18

@seandenigris
Copy link
Contributor Author

Reported by anquetil.nicolas on 2012-07-25 13:14:45

  • Status changed: Fixed

@seandenigris
Copy link
Contributor Author

Reported by tudor@tudorgirba.com on 2013-03-03 12:56:45

  • Labels added: Milestone-4.7, Component-Famix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants