diff options
author | David Karlaš <david.karlas@microsoft.com> | 2018-01-22 13:59:11 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@microsoft.com> | 2018-01-22 13:59:11 +0300 |
commit | a9863b044affee57a0b1ab811cf0e9137d077b06 (patch) | |
tree | ee19cbd5f659ecf83dfb96e6163b91c17c9cc6cc /UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs | |
parent | 3bbf4f308d62a3fa1af4c3f94551ae38afd3730b (diff) |
Fixed 551125 - [Feedback] Xamarin iOS debugger "unable to evaluate" simple expression
There were actually 2 bugs that needed fixing
1) In VisitUnaryOperatorExpression decimal values were lost(only whole part of number was negative)
2) None of arithmetic operations on System.nfloat and System.nint worked, because it considered it as struct and not double/float/int/long, this is fixed in ObjectValueAdapter
I also found that `double a = 23` didn't work because there was no cast from `int` to `double`, this is fixed in VisitAssignmentExpression
Also added unit tests
Diffstat (limited to 'UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs')
-rw-r--r-- | UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs b/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs index 075bc19..e657a2a 100644 --- a/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs +++ b/UnitTests/MonoDevelop.Debugger.Tests.TestApp/TestEvaluation.cs @@ -223,6 +223,7 @@ namespace MonoDevelop.Debugger.Tests.TestApp { int intZero = 0, intOne = 1; int n = 32; + double d; decimal dec = 123.456m; var stringList = new List<string> (); stringList.Add ("aaa"); |