- Timestamp:
- 11/06/08 19:36:55 (2 months ago)
- Files:
-
- 1 modified
-
t/spec/S06-traits/misc.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S06-traits/misc.t
r22902 r22903 3 3 use Test; 4 4 5 plan 1 3;5 plan 14; 6 6 7 7 =begin description … … 17 17 # note: many of these errors can be detected at compile time, so need 18 18 # eval_dies_ok instead of dies_ok 19 # 20 # test twice, once with assignment and once with increment, rakudo 21 # used to catch the first but not the latter. 22 # 19 23 #?rakudo todo 'TODO: catch modification of subroutine arg' 20 24 eval_dies_ok ' … … 25 29 'can\'t modify parameter, constant by default'; 26 30 31 eval_dies_ok ' 32 my $tmp = 1; 33 sub mods_param ($x) { $x = 1; } 34 mods_param($tmp) 35 ', 36 'can\'t modify parameter, constant by default'; 27 37 28 38 # is readonly
