Bug 46806 - opspecial011.Program.DynamicCSharpRunTest test in ms-test-suite fails with "Operator '+' cannot be applied to operands"
Summary: opspecial011.Program.DynamicCSharpRunTest test in ms-test-suite fails with "O...
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2016-11-11 15:31 UTC by Alexander Köplinger [MSFT]
Modified: 2016-11-17 17:51 UTC (History)
2 users (show)

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


Attachments

Description Alexander Köplinger [MSFT] 2016-11-11 15:31:30 UTC
Stacktrace:


> 1) DynamicCSharpRunTest > (ManagedTests.DynamicCSharp.Conformance.dynamic.SpecialNames.opspecial011.Program.DynamicCSharpRunTest)
>    Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : Operator `+' cannot be applied to operands of type > `ManagedTests.DynamicCSharp.Conformance.dynamic.SpecialNames.opspecial011.Test' and `int'
>   at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,> System.Runtime.CompilerServices.CallSite,object,int)
>   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0, > T1 arg1) [0x00132] in > /Users/alexander/dev/mono/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:387
>   at ManagedTests.DynamicCSharp.Conformance.dynamic.SpecialNames.opspecial011.Test.Method () [0x002ee] in > /Users/alexander/dev/mono/acceptance-tests/external/ms-test-suite/conformance/System.Dynamic.Runtime/4.0.0.0/Dynamic.> Other/Conformance.dynamic.SpecialNames.cs:388
>   at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,> System.Runtime.CompilerServices.CallSite,object)
>   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) > [0x00127] in > /Users/alexander/dev/mono/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:262
>   at ManagedTests.DynamicCSharp.Conformance.dynamic.SpecialNames.opspecial011.Program.MainMethod () [0x00010] in > /Users/alexander/dev/mono/acceptance-tests/external/ms-test-suite/conformance/System.Dynamic.Runtime/4.0.0.0/Dynamic.> Other/Conformance.dynamic.SpecialNames.cs:407
>   at ManagedTests.DynamicCSharp.Conformance.dynamic.SpecialNames.opspecial011.Program.DynamicCSharpRunTest () [0x00002] in > /Users/alexander/dev/mono/acceptance-tests/external/ms-test-suite/conformance/System.Dynamic.Runtime/4.0.0.0/Dynamic.> Other/Conformance.dynamic.SpecialNames.cs:401
>   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],> System.Exception&)
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, > System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in > /Users/alexander/dev/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

This test was never ran on NUnit because it ignored it, but showed up with the move to nunitlite.
Comment 1 Marek Safar 2016-11-17 17:51:03 UTC
Fixed in master

Note You need to log in before you can comment on or make changes to this bug.