We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can call a method that returns a Collection to initiate the range of a for-each loop:
open class HelloWorld { @main override void greeting() { for (name in self.names()) { name.log(); } } def Sequence(String) names() { result := Sequence{'Lorem', 'Ipsum'}; } }
The editor shows an error Expected Collection but was [ecore::EEList].
Expected Collection but was [ecore::EEList]
The interpreter behaves as expected so this only affects the type checker.
The text was updated successfully, but these errors were encountered:
[Type Checker] Allow use of methods to define for-each loops' range (fix
3c89fef
#102)
bdf0129
ff506c3
4ca52f2
6e81904
echebbi
Successfully merging a pull request may close this issue.
Expected behavior
We can call a method that returns a Collection to initiate the range of a for-each loop:
Current behavior
The editor shows an error
Expected Collection but was [ecore::EEList]
.The interpreter behaves as expected so this only affects the type checker.
The text was updated successfully, but these errors were encountered: