Comments (3)
Not only the method cannot be called, but internally, the parameter cannot be used properly.
various error occurs
some example:
from ale-lang.
from ale-lang.
It looks like the issue only occurs when the Sequence is declared within an operation. e.g. the following code is correctly checked & interpreted:
behavior helloworld;
open class HelloWorld {
Sequence(Integer) list;
def int mysum(Sequence(Integer) list) {
result := list->sum();
}
@main
def void run() {
self.list := Sequence{1, 2, 3};
self.mysum(self.list).log();
}
}
Note: The assignation
result := list->sum()
is not handled by the TypeChecker(Expected [ecore::EInt] but was [Nothing(Sum can only be used on a collection of numbers.)), but that seems to be another bug.
from ale-lang.
Related Issues (20)
- Enhance the project generated by the wizard when 'Use Java Services' is checked
- Cannot override static EOperations from a subclass when the fully qualified name is used
- The type checker doesn't distinguish an object from its class
- Cannot override java.lang.Object's methods
- [API] Provide a way to add update the environment
- Autocomplete available collections when writing 'for' statement
- Autocomplete right-hand side of assignments
- Autocomplete empty statements
- Autocomplete if conditions
- Autocomplete while conditions
- Autocomplete chained expressions
- Enhance code completion
- Automatically validate project when the ALE environment changes HOT 1
- Validate source files each time a change occurs
- The arrow (->) operator only works on collections
- Automatically validate project when a metamodel in the ALE environment changes HOT 1
- Cannot run inherited @main method
- dsl file created by the new ale project wizard adds a backslash before the coma
- Add a way to call overridden methods
- result can't be used in expressions when not initialized
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ale-lang.