SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
287 stars 25 forks source link

Bug: left shift and right shift operators fail with primitive operands of different types #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
e.g.

> <@ 23L <<< 1 @> |> eval;;
System.NotSupportedException: Specified method is not supported.
   at Swensen.Unquote.DynamicOperators.invokeBinOp(String name, Type aty, Type bty, Object x, Object y)
   at Swensen.Unquote.Evaluation.eval(FSharpList`1 env, FSharpExpr expr)
   at Swensen.Unquote.Extensions.Expr`1.Eval[T](FSharpExpr`1 )
   at <StartupCode$FSI_0005>.$FSI_0005.main@()
Stopped due to error

Original issue reported on code.google.com by stephen....@gmail.com on 11 Jul 2011 at 3:37

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 12 Jul 2011 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 12 Jul 2011 at 3:03