Bug 16491 - Wrong completion on multiple parameter lambdas
Summary: Wrong completion on multiple parameter lambdas
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Windows
: Normal normal
Target Milestone: 4.2.4 (from master)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-11-28 05:24 UTC by Piotr Zierhoffer
Modified: 2014-03-12 12:19 UTC (History)
7 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 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:
Status:
VERIFIED FIXED

Description Piotr Zierhoffer 2013-11-28 05:24:52 UTC
When writing "new Action<int, int>((x,y)"
"y" gets completed to "yield" keyword, which is generally not intended by user.

Since these are parameters for a lambda expression, there should be no completion at all.
Comment 1 Nischal 2013-11-29 01:45:21 UTC
We have checked this issue with:

Windows 8
XS 4.2.2(build 2)

When we type "new Action<int, int>((x,y)" in C#-> Console project then, 'y' gets completed as "yield" keyword.

screencast: http://screencast.com/t/XuUPE4GY9RM
Comment 2 Mike Krüger 2013-11-29 01:54:34 UTC
fixed
Comment 3 narayanp 2013-12-30 06:25:56 UTC
I have checked this issues with following builds:

All Mac and Windows
X.S 4.2.3(build 23)

I am still getting yield after typing 'y'. This is the screencast for the same: http://screencast.com/t/Ooz5JQaYg

Hence, Reopening this issue.
Comment 4 Mike Krüger 2014-01-03 03:19:55 UTC
You're making a different case - 

new Action<int, int>(x,y

is not

new Action<int, int>((x,y
Comment 5 Mike Krüger 2014-01-03 03:34:07 UTC
But it was good that I looked at the case again - I could improve it a bit.
Comment 6 Prashant manu 2014-02-11 05:36:26 UTC
I have checked this, when "yield" keyword not appear in intelligence when I typed y

Refer screen cast: http://screencast.com/t/GEcPTgm2hSS

Checked With:
Window
Xamarin Studio 4.2.4 (build 14)
Comment 7 Saurabh 2014-03-03 12:22:10 UTC
We are still getting same issue as appears in screencast of comment1 and Comment3.

Screncast: http://screencast.com/t/5eiomvZeU

XS 4.2.4(build 23)
Mono 3.2.7

Hence, I am reopening this issue again.
Comment 8 Mike Krüger 2014-03-03 12:31:07 UTC
Saurabh: it's not valid c# what you're trying to type.
Comment 9 Ram Chandra 2014-03-12 12:19:31 UTC
I have checked this issue on following builds:

windows 
Xamarin Studio : 4.2.4 (build 30)

Release ID: 402040030
Git revision: dca4b8cd2756833329f16b7e513f325286846d4e
Build date: 2014-03-07 16:02:04-05
Xamarin addins: a70271467d292010ed315f9f1924db1ecde542d1


I observe that this issue is working fine. When I type the "y" on "Action delegate" it is not converted into "yield" keyword.

screencast:  http://screencast.com/t/lcx4lfithi7W

Hence, I am closing this issue.

Please let me know if I have to check anything else.