Bug 40056 - Null shown for method calls that return values if terminated with semicolon
Summary: Null shown for method calls that return values if terminated with semicolon
Status: VERIFIED FIXED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Cross Platform (Shared Code) ()
Version: 0.7.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: inspectordev-discuss
URL:
Depends on:
Blocks:
 
Reported: 2016-04-01 17:23 UTC by Alex Corrado [MSFT]
Modified: 2017-02-15 22:44 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Alex Corrado [MSFT] 2016-04-01 17:23:38 UTC
The result of method calls that return a non-void value is displayed as "null" when the call is terminated with a semicolon. If the semicolon is omitted, the correct value is displayed.

Test case:

bool Test () => true

Test ()
--> true

Test ();
--> null


Expected behavior:
The proper return value should be displayed regardless of whether a semicolon is used.
Comment 1 Aaron Bockover [MSFT] 2016-04-11 21:33:05 UTC
Will be fixed in 0.7.2.