Bug 11242 - mcs fails to compile Fluent NHibernate
Summary: mcs fails to compile Fluent NHibernate
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2013-03-18 18:18 UTC by lihalla
Modified: 2013-03-20 05:00 UTC (History)
2 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 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 lihalla 2013-03-18 18:18:35 UTC
I am unable to build Fluent NHibernate with latest mcs compiled from git even if previous versions of mcs worked correctly. Bisecting found the first bad commit:

c3bd798a5802ac70c9aafabfb557b9a9657ef650 is the first bad commit
commit c3bd798a5802ac70c9aafabfb557b9a9657ef650
Author: Marek Safar <marek.safar@gmail.com>
Date:   Mon Jan 14 15:11:16 2013 +0100

    Inflate explicit interface implementation generic method parameters in correct context. Fixes #9443

:040000 040000 d2175dc704add981f2a3e0b5824af880a7c4a5fa 081c51b223a0bdb2963af04c481e1867094870b3 M      mcs

I have tried to make simple test case, but failed.

Error messages from Fluent NHibernate build:

...fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/ManyToManyCollectionInstance.cs(8,19): error CS0425: The constraints for type parameter `TFilter' of method `FluentNHibernate.Conventions.Instances.CollectionInstance.ApplyFilter<TFilter>(string)' must match the constraints for type parameter `TFilter' of interface method `FluentNHibernate.Conventions.Instances.IManyToManyCollectionInstance.ApplyFilter<TFilter>(string)'. Consider using an explicit interface implementation instead
.../fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/CollectionInstance.cs(270,21): (Location of the symbol related to previous error)
.../fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/IManyToManyCollectionInstance.cs(36,14): (Location of the symbol related to previous error)
.../fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/OneToManyCollectionInstance.cs(8,18): error CS0425: The constraints for type parameter `TFilter' of method `FluentNHibernate.Conventions.Instances.CollectionInstance.ApplyFilter<TFilter>(string)' must match the constraints for type parameter `TFilter' of interface method `FluentNHibernate.Conventions.Instances.IOneToManyCollectionInstance.ApplyFilter<TFilter>(string)'. Consider using an explicit interface implementation instead
.../fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/CollectionInstance.cs(270,21): (Location of the symbol related to previous error)
.../fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/IOneToManyCollectionInstance.cs(37,14): (Location of the symbol related to previous error)
Comment 1 Marek Safar 2013-03-20 05:00:20 UTC
Fixed in master