[Mono-bugs] [Bug 589069] Compiler cant compile method with generic type information

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 25 13:14:01 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=589069

http://bugzilla.novell.com/show_bug.cgi?id=589069#c3


Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mono-bugs at lists.ximian.com  |msafar at novell.com

--- Comment #3 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2010-03-25 17:14:00 UTC ---
Mono from trunk says:
class.cs(13,37): error CS1501: No overload for method `Add' takes `3' arguments

------------------------------------------


This is the error I get when compiling that code using the 2-6 branch:
Unhandled Exception: Mono.CSharp.InternalErrorException: class.cs(11,35):
TestClass<T>.TestClass(int) ---> Mono.CSharp.InternalErrorException:
VerifyArgumentsCompat didn't find any problem with rejected candidate
System.Void Add(T[][]&, T[], System.Int32)
  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.ResolveContext
ec, Mono.CSharp.Arguments& Arguments, Boolean may_fail, Location loc) [0x004e7]
in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/ecore.cs:4315 
  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.ResolveContext ec)
[0x00000] in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/expression.cs:4992 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x002b8]
in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/expression.cs:4932 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00075] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/ecore.cs:488 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec) [0x00000]
in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/ecore.cs:515 
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.BlockContext
ec) [0x00000] in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/ecore.cs:1348 
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.BlockContext ec)
[0x0001b] in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/statement.cs:660 
  at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext ec) [0x0016a] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/statement.cs:2164 
  at Mono.CSharp.ToplevelBlock.Resolve (Mono.CSharp.FlowBranching parent,
Mono.CSharp.BlockContext rc, Mono.CSharp.ParametersCompiled ip, IMethodData md)
[0x0003e] in /home/gonzalo/mono/branches/mono-2-6/mcs/mcs/statement.cs:2826 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.EmitConstructors () [0x00100] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/class.cs:2172 
  at Mono.CSharp.TypeContainer.EmitType () [0x0001c] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/class.cs:2189 
  at Mono.CSharp.RootContext.EmitCode () [0x00026] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/rootcontext.cs:362 
  at Mono.CSharp.Driver.Compile () [0x00362] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/driver.cs:1772 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x0002e] in
/home/gonzalo/mono/branches/mono-2-6/mcs/mcs/driver.cs:310

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list