Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.indent does not coerce args to int #3471

Closed
p6rt opened this issue Aug 4, 2014 · 4 comments
Closed

.indent does not coerce args to int #3471

p6rt opened this issue Aug 4, 2014 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Aug 4, 2014

Migrated from rt.perl.org#122469 (status was 'resolved')

Searchable as RT122469$

@p6rt
Copy link
Author

p6rt commented Aug 4, 2014

From @coke

S32-str/indent.t needs indent() to coerce its arg to an int.

21​:34 < [Coke]> n​: "asdf".indent('0x10').say;
21​:34 <+camelia> niecza v24-109-g48a8de3​: OUTPUT« asdf␤»
21​:34 < [Coke]> m​: "asdf".indent('0x10').say;
21​:34 <+camelia> rakudo-moar d97cd1​: OUTPUT«Cannot call 'indent'; none of these
  signatures match​:␤​:(Str​: Int $steps where { ... }, *%_)␤​:(Str​:
  Int $steps where { ... }, *%_)␤​:(Str​: Any $steps where { ...
  }, *%_)␤ in block at /tmp/h9TQ8mwcc1​:1␤␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 21, 2014

From @usev6

This works no (again) and the test in S32-str/indent.t was unfudged.

$ perl6 -e '"asdf".indent('0x10').say;'
  asdf

I'm closing this ticket.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 21, 2014

From @usev6

This works no (again) and the test in S32-str/indent.t was unfudged.

$ perl6 -e '"asdf".indent('0x10').say;'
  asdf

I'm closing this ticket.

@p6rt p6rt closed this as completed Oct 21, 2014
@p6rt
Copy link
Author

p6rt commented Oct 21, 2014

@usev6 - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant