Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355976

Summary: Invalid error message when compiling a >= expression
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.