Bug 14384 - Linq Compilation issue
Summary: Linq Compilation issue
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2013-09-03 03:06 UTC by James Clancey
Modified: 2013-09-04 11:06 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 GitHub or 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:

Description James Clancey 2013-09-03 03:06:14 UTC
The following code works when I build for MTVS:


but it fails in XS. I had to change it to:

result.SimilarArtists.AddRange(data[9].Select( x=> Artist.FromToken(x)));

public class Artist
public static Artist(JToken token)
return new Artist();

Comment 1 Lluis Sanchez 2013-09-03 12:01:12 UTC
In which way does it fail? does it give a compilation error?
Comment 2 James Clancey 2013-09-03 12:29:35 UTC
ArtistResult.cs(53,53): Error CS0120: An object reference is required to access non-static member `gMusic.ArtistResult.Artist'
Comment 3 Lluis Sanchez 2013-09-03 12:31:45 UTC
mcs issue.
Comment 4 Marek Safar 2013-09-03 12:46:03 UTC
What version is it? And can you include at least Artist.FromToken signature? Full sample would be the best
Comment 6 Marek Safar 2013-09-04 11:06:56 UTC
Fixed in master