Permalink
Browse files

Merge pull request #315 from NN---/patch-11

Use long instead of double
  • Loading branch information...
2 parents 1378d6e + ab7b6f2 commit 4e32a4d800009f86b1b41dc308ce6e57729fdb06 @VladD2 VladD2 committed Mar 19, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 ncc/testsuite/positive/Issue-git-0271.n
View
14 ncc/testsuite/positive/Issue-git-0271.n
@@ -12,10 +12,10 @@ public module Program
DebugPrint(e);
DebugPrint(e :> int);
- def f : double? = double.MaxValue;
- DebugPrint(f);
- DebugPrint(f.HasValue);
- DebugPrint(unchecked(f :> int));
+ def x : long? = long.MaxValue;
+ DebugPrint(x);
+ DebugPrint(x.HasValue);
+ DebugPrint(unchecked(x :> int));
def f : double? = null;
DebugPrint(f);
@@ -35,9 +35,9 @@ BEGIN-OUTPUT
e.HasValue ==> True
e ==> 42
(e :> int) ==> 42
-f ==> 1.79769313486232E+308
-f.HasValue ==> True
-unchecked (f :> int) ==> -2147483648
+x ==> 9223372036854775807
+x.HasValue ==> True
+unchecked (x :> int) ==> -1
f ==>
f.HasValue ==> False
unchecked (f :> ?int).HasValue ==> False

0 comments on commit 4e32a4d

Please sign in to comment.