Bug 4180 - Incorrect: Incompatible type 'object (Complex)' on stack cannot be stored to local 0
Summary: Incorrect: Incompatible type 'object (Complex)' on stack cannot be stored to ...
Alias: None
Product: Runtime
Classification: Mono
Component: Verifier ()
Version: unspecified
Hardware: PC Linux
: --- major
Target Milestone: ---
Assignee: Rodrigo Kumpera
Depends on:
Reported: 2012-04-02 05:13 UTC by Marek Safar
Modified: 2012-04-23 14:38 UTC (History)
2 users (show)

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

test-verifier.exe (3.00 KB, application/x-msdos-program)
2012-04-02 05:14 UTC, Marek Safar

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 Marek Safar 2012-04-02 05:13:55 UTC
peverify test-verifier.exe 
In method: C::Test()
Not Verifiable: Incompatible type 'object (Complex)' on stack cannot be stored to local 0 with type 'IA' at 0x0013

No error on .net
Comment 1 Marek Safar 2012-04-02 05:14:58 UTC
Created attachment 1609 [details]
Comment 3 Marek Safar 2012-04-23 10:07:48 UTC
I don't think that's the case

the stack before IL_0013 is
[IB] x [X]

IB is an interface which derives from IA
X is a class which implements IA
target store type is of IA

Why mono verifier cannot handle it?
Comment 4 Rodrigo Kumpera 2012-04-23 11:02:50 UTC
Good point, I missed the fact that XX implements IA.
Comment 5 Rodrigo Kumpera 2012-04-23 14:38:26 UTC
Fixed on trunk.