kjm00king / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

JsDate should implement operator overload for < > #319

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
new JsDate() < new JsDate()

What is the expected output? 
compilation

What do you see instead?
Error   Operator '<' cannot be applied to operands of type 
'SharpKit.JavaScript.JsDate' and 'SharpKit.JavaScript.JsDate'

Original issue reported on code.google.com by giladkhen@gmail.com on 3 Oct 2013 at 7:59

GoogleCodeExporter commented 8 years ago

Original comment by DanelK...@gmail.com on 3 Oct 2013 at 2:53

GoogleCodeExporter commented 8 years ago
It's not possible to compare jsdate with > or <, you must use valueOf() and 
compare the number inside, or use clr mode which creates the needed operator 
overloads accordingly.

Original comment by DanelK...@gmail.com on 3 Oct 2013 at 4:30