Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354252 - Concat of null string using ?: operator doesn't return null
Summary: Concat of null string using ?: operator doesn't return null
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-09 09:56 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:16 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 Kathy Carroll CLA 2011-08-09 09:56:46 EDT
Expecting a null value when I use the ?: operator with a null string

EGL code:

program tester type BasicProgram {}

	function main()
		nullStr string? = null;
		valueStr string = "Red bull";
		resultStr string? = nullStr ?: valueStr;
		if (resultStr == null )
			syslib.writeStdOut("?: successful");
		else
			syslib.writeStdOut(":? failure");
		end		
	end
	
end
Comment 1 Jeff Douglas CLA 2011-08-09 12:20:43 EDT
fixed
Comment 2 Lisa Lasher CLA 2011-10-11 16:05:23 EDT
Closing this defect.