Skip to content

Commit

Permalink
Pass compilation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jun 1, 2018
1 parent d21fb36 commit 52e8f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/numerics.pod6
Expand Up @@ -508,7 +508,7 @@ At times, you may wish to coerce some value to a native type without creating an
There are no C<.int> or similar coersion methods (method calls are latebound, so they're not
well-suited for this purpose). Instead, simply use an anonymous variable:
=begin code :preamble<my $y; my $z;>
=begin code :preamble<my $y; my $z; sub some-native-taking-sub(|c){}>
some-native-taking-sub (my int $ = $y), (my int32 $ = $z)
=end code
Expand All @@ -517,7 +517,7 @@ some-native-taking-sub (my int $ = $y), (my int32 $ = $z)
Trying to B<assign> a value that does not fit into a particular native type, produces an exception.
This includes attempting to give too large an argument to a native parameter:
=begin code
=begin code :skip-test<errors>
my int $x = 2¹⁰⁰;
# OUTPUT:
# Cannot unbox 101 bit wide bigint into native integer
Expand Down

0 comments on commit 52e8f71

Please sign in to comment.