Skip to content

Commit

Permalink
Merge pull request rsdn#315 from NN---/patch-11
Browse files Browse the repository at this point in the history
Use long instead of double
  • Loading branch information
VladD2 committed Mar 19, 2012
2 parents 1378d6e + ab7b6f2 commit 4e32a4d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ncc/testsuite/positive/Issue-git-0271.n
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 4e32a4d

Please sign in to comment.