Bug 21494 - IEnumerator's (args) don't count as an existisg var
Summary: IEnumerator's (args) don't count as an existisg var
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 5.2
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2014-07-21 18:46 UTC by nukevaster
Modified: 2015-05-20 01:02 UTC (History)
3 users (show)

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 or GitHub 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:

Description nukevaster 2014-07-21 18:46:22 UTC
public IEnumerator BoostTimer (float wait) {
		yield return new WaitForSeconds(wait);
		oldmps = mainScript.mps;
		mainScript.mps *= 5;
		yield return new WaitForSeconds(30f);
		mainScript.mps = oldmps;
		StartCoroutine(BoostTimer (300f));

tells me wait is not a variable yet in waitforseconds(wait);
works fine in other ides and xamarin studio 5.1.4
Comment 1 Mike Krüger 2014-07-23 01:46:14 UTC
What do you mean with 'tells me' ? 
A compilation error/warning ?

Otherwise the whole file/project would've helped me more to track the issue - or screenshots. The snippet is not compileable.
Comment 2 nukevaster 2014-07-23 09:53:16 UTC
Well I'm using 5.1.4 which works fine so I don't feel like re-downloading 5.2 but if I remember right there was a red line under the wait in waitforseconds(wait) part of it and it said wait does not exist in current context
Comment 3 Mike Krüger 2015-05-20 01:02:18 UTC
Should not happen anymore in 6.0