Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Description of Problem:
Steps to reproduce the problem:
1. xubuntu 12.04 amd64 Mono JIT compiler version 184.108.40.206 (Debian 220.127.116.11-1ubuntu2.2)
2. copy-paste attached file to new project, and try to compile.
Main.cs(15,53): error CS0584: Internal compiler error: Object reference not set to an instance of an object
Main.cs(15,41): error CS0266: Cannot implicitly convert type `object' to `string'. An explicit conversion exists (are you missing a cast?)
Main.cs(15,41): error CS1662: Cannot convert `anonymous method' to delegate type `proba1.Proba.GetString' because some of the return types in the block are not implicitly convertible to the delegate return type
If you uncomment function getTx(), then compile ok.
Created attachment 2695 [details]
this code not compiled
> gmcs --version
Mono C# compiler version 18.104.22.168
Already fixed in Mono 2.11