Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350746 - Operators which should be found are not found
Summary: Operators which should be found are not found
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 16:26 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Heitz CLA 2011-06-29 16:26:23 EDT
Try compiling this code.
	a float;
	a = a * 100;
There's an error on the * expression, as if the function for * isn't found.  But it's right there in SimpleTypes.egl.
Comment 1 Paul Harmon CLA 2011-07-07 12:19:43 EDT
This turned out to be a type in the operation definition in Float64 and Float32 in org.eclipse.edt.compiler\eglsource\egl\lang\SimpleTypes.egl

The definition for the binary minus was defined with @Operation{"*"}


This was causing the code to think there were 2 operations for multiply, and so it returned a null.

I have updated the EGL source and the edtCompiler.eglar files to fix this problem.
Comment 2 Matt Heitz CLA 2011-07-07 12:54:46 EDT
"This turned out to be a type" ... you get extra credit for making a typo in the word typo.
Comment 3 Matt Heitz CLA 2011-07-07 16:20:33 EDT
Verified.