Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355976 - Invalid error message when compiling a >= expression
Summary: Invalid error message when compiling a >= expression
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 15:36 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:21 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 Brian Svihovec CLA 2011-08-26 15:36:57 EDT
Create a program named P2 and add the source below.  The following validation error is reported:

IWN.VAL.5048.e 10/6 {0} - Only valid comparison between ref types is == or !=. At line {1} in file {2}

Source:
program P2 type BasicProgram {}
	
	var1 string;
	var2 string;
	function main()
		if((var1 as decimal) >= (var2 as decimal))
		end
	end
	
end
Comment 1 Paul Harmon CLA 2011-08-29 08:56:34 EDT
I have updated DefaultBinder to allow this type of comparison
Comment 2 Lisa Lasher CLA 2011-11-09 14:17:01 EST
This defect was fixed at least 2 months ago, so I am closing.