Skip to content
Newer
Older
100644 33 lines (27 sloc) 591 Bytes
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
1 use v6;
2 use Test;
b04665c @lizmat Some more plans added
lizmat authored May 9, 2014
3 plan 3;
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
4
636e4d6 @coke prefer RT #ticket
coke authored Nov 1, 2015
5 # RT #71754
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
6 {
7 my @called;
41c9d28 @jnthn Fix test file that assumed Int ~~ Num, and unfudge the test Rakudo ri…
jnthn authored Sep 29, 2011
8 multi rt71754( Numeric $x ) { #OK not used
9 push @called, 'Numeric';
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
10 }
8dc7d4b [t/spec] mark various tests that intentionally declare things that ar…
lwall authored Jul 15, 2010
11 multi rt71754( Int $x ) { #OK not used
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
12 push @called, 'Int';
13 callsame;
14 }
9f47446 @lizmat s/lives_ok/lives-ok/g
lizmat authored May 20, 2015
15 lives-ok { rt71754( 71754 ) }, 'Can call multi that uses "callsame"';
41c9d28 @jnthn Fix test file that assumed Int ~~ Num, and unfudge the test Rakudo ri…
jnthn authored Sep 29, 2011
16 is @called, <Int Numeric>, 'multi with "callsame" worked';
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
17 }
18
636e4d6 @coke prefer RT #ticket
coke authored Nov 1, 2015
19 # RT #69314
20ccb4a @colomon Fudged for niecza.
colomon authored Dec 23, 2011
20 #?niecza todo
28e9146 [t/spec] Added test for RT69314 - Null PMC access when calling 'calls…
radus authored Jun 27, 2010
21 {
22 sub rt69314($n) {
23 if $n {
328f005 @tadzik Fix a test for RT 69314, fudge S06-advanced_subroutine_features/calls…
tadzik authored Sep 15, 2011
24 callsame;
28e9146 [t/spec] Added test for RT69314 - Null PMC access when calling 'calls…
radus authored Jun 27, 2010
25 }
26 };
27
9f47446 @lizmat s/lives_ok/lives-ok/g
lizmat authored May 20, 2015
28 lives-ok {rt69314(1)}, 'Calling callsame directly from a sub works';
28e9146 [t/spec] Added test for RT69314 - Null PMC access when calling 'calls…
radus authored Jun 27, 2010
29
30 }
31
dfb7f57 [t/spec] Test for RT 71754: callsame used in multi sub
kyle authored Jan 11, 2010
32 # vim: ft=perl6
Something went wrong with that request. Please try again.