Bug 24784

Summary: Multiplication when passing optional parameter is now failing to compile
Product: [Mono] Installers Reporter: Peter Collins <peter.collins>
Component: GeneralAssignee: Bugzilla <bugzilla>
Severity: blocker CC: alan, mono-bugs+mono, pj.beaman, ramc
Priority: Highest    
Version: unspecified   
Target Milestone: 3.12.0   
Hardware: Macintosh   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Peter Collins 2014-11-24 19:13:29 UTC
The following simple console project repro is failing to compile after installing mono 3.12-series (32 bit). This does not fail to compile against the current stable desktop mono 3.10.

/Users/petercollins/Projects/SimpleIntRepro/SimpleIntRepro/Program.cs(42,42): Error CS1525: Unexpected symbol `1000' (CS1525) (SimpleIntRepro)

public static int NonOptionalParam (int seconds)
	return OptionalParam (value: seconds * 1000);

public static int OptionalParam (int value = 0)
	return value;

OSX Mavericks
mono-mac-3.12.0-branch-32 / 84068e57b
Comment 1 Rodrigo Kumpera 2014-11-25 16:02:16 UTC
Marek, could you take a look at this one?

Comment 2 Marek Safar 2014-11-26 17:02:14 UTC
Fixed in master and 3.12 branch
Comment 3 Alan McGovern 2014-12-03 14:46:34 UTC
*** Bug 25051 has been marked as a duplicate of this bug. ***
Comment 4 PJ 2014-12-03 14:50:31 UTC
While it's true that this was a compiler bug, the issue does need to be tracked for the Desktop Mono 3.12 release, so I'm moving the bug back there.

Since the bug is resolved (comment 2), I'm assuming I can move it to RESOLVED, so I'm doing that.
Comment 5 Ram Chandra 2014-12-08 14:30:30 UTC
I have checked this issue with following builds:

Mac OS X 10.9.5
Xamarin Studio: 5.7 (build 640)
Mono 3.12.0 ((detached/ef27535)
GTK+ 2.24.23 (Raleigh theme)
Package version: 312000064
=== Build Information ===

Release ID: 507000640
Git revision: 4f3f3f5fb9e31ed94e209ebcf9d9584460193d7a
Build date: 2014-12-05 17:17:05-05
Xamarin addins: 5d2ee5bbe804eb424744303b81aff2f78c72d884

Screencast: http://screencast.com/t/fzyFBmIam

Now XS is able to compile when try to do multiplication with the optional parameter. 

This issue has been fixed. Hence I am closing this issue.