Skip to content

fix(typecheck): hint at String.repeat for string multiplication - #169

Open
PandaHUN777 wants to merge 1 commit into
simontreanor:mainfrom
PandaHUN777:fix/string-repeat-hint-133
Open

PandaHUN777 wants to merge 1 commit into
simontreanor:mainfrom
PandaHUN777:fix/string-repeat-hint-133

Conversation

@PandaHUN777

Copy link
Copy Markdown

Summary

  • Suggest String.repeat count string when * receives a string operand.
  • Preserve the existing String.concat guidance for + and generic numeric errors elsewhere.
  • Add coverage for both operand orders and unrelated numeric mismatches.

Closes #133

Validation

  • cargo fmt --check
  • cargo clippy --all-targets
  • cargo test
  • cargo build

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Hint String.repeat when a string is multiplied

1 participant