Bug 2480 - MonoTouch compiler requires "where" declarations on all implementations of generic partial class
Summary: MonoTouch compiler requires "where" declarations on all implementations of ge...
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2011-12-13 11:53 UTC by jesse.attas
Modified: 2011-12-20 18:21 UTC (History)
1 user (show)

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


Attachments
Project, class files, and interface reproducing the problem (2.79 KB, application/zip)
2011-12-13 11:53 UTC, jesse.attas
Details


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:
Status:
RESOLVED FIXED

Description jesse.attas 2011-12-13 11:53:31 UTC
Created attachment 1040 [details]
Project, class files, and interface reproducing the problem

I have a generic partial class where interfaces that the generic type must satisfy are specified with the "where" keyword. To be able to call any of the functions in those interfaces, the "where" block must be specified on every instance of the partial class. In Visual Studio it's OK to specify the "where" block on only one instance of the partial class. If I do this in MonoDevelop, the compiler reports: 

Error CS1061: Type `T' does not contain a definition for `SomeInterfaceFunction' and no extension method `SomeInterfaceFunction' of type `T' could be found (are you missing a using directive or an assembly reference?). 

See the attached project.

My software versions are:
MonoDevelop 2.8.4.2
Mono 2.10.6 (tarball Fri Sep 16 00:13:06 EDT 2011)
Comment 1 Marek Safar 2011-12-14 09:46:38 UTC
Already fixed in master
Comment 2 jesse.attas 2011-12-20 18:21:06 UTC
If a bug is fixed in master, when will it typically make it into the released product?