Browse Source

Fix build by adding casts to pretty test introduced by dd1c509651

pull/960/head
Siegfried Pammer 8 years ago
parent
commit
dc4ea27a3a
  1. 4
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/QueryExpressions.cs

4
ICSharpCode.Decompiler.Tests/TestCases/Pretty/QueryExpressions.cs

@ -100,7 +100,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -100,7 +100,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
return from c in this.customers
from o in c.Orders
from d in o.Details
let x = d.Quantity * d.UnitPrice
let x = (decimal)d.Quantity * d.UnitPrice
select new {
c.Name,
o.OrderID,
@ -111,7 +111,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -111,7 +111,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
public object FromLetWhereSelect()
{
return from o in this.orders
let t = o.Details.Sum((OrderDetail d) => d.UnitPrice * d.Quantity)
let t = o.Details.Sum((OrderDetail d) => d.UnitPrice * (decimal)d.Quantity)
where t >= 1000m
select new {
OrderID = o.OrderID,

Loading…
Cancel
Save