Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 43dd82e83e
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.428 kb
use v6;
class Other {
method subr( $a, $b ) { $a + $b };
}
class Other {
method subr2( $a, $b, $c ) { $a + $b + $c };
}
class Main {
say '1..2';
my $other = Other.new();
my $x = 0;
$x = $other.subr( 1, 2 );
if $x != 3 {
print 'not '
};
say 'ok 1 - ', $x;
$x = 0;
$x = Other.subr2( 1, 2, 4 );
if $x != 7 {
print 'not '
};
say 'ok 2 - ', $x;
}
Jump to Line
Something went wrong with that request. Please try again.