Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338379 - Return types of EOL operations are not checked
Summary: Return types of EOL operations are not checked
Status: CLOSED DUPLICATE of bug 321001
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 04:40 EST by Antonio Garcia-Dominguez CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments
Sample EOL script (740 bytes, application/octet-stream)
2011-02-28 04:41 EST, Antonio Garcia-Dominguez CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Garcia-Dominguez CLA 2011-02-28 04:40:40 EST
Build Identifier: M20100909-0800

Epsilon performs some type checking already: for instance, trying to assign a Sequence to a Set variable results in an error. Additionally, trying to call a function with the wrong parameter types will usually report an error saying that the function does not exist.

However, there is an inconsistency: return values from operations which declare their return type are not checked.

Reproducible: Always

Steps to Reproduce:
1. Run the attached EOL script.
2. Notice that it does not report any errors, even though it should.
Comment 1 Antonio Garcia-Dominguez CLA 2011-02-28 04:41:12 EST
Created attachment 189921 [details]
Sample EOL script
Comment 2 Antonio Garcia-Dominguez CLA 2011-05-19 06:03:58 EDT

*** This bug has been marked as a duplicate of bug 321001 ***