Skip to content

fix(dncl): join a string to the console input value #2610

Done

Description

@smalruby3-editor-bot

autopilot-base: topic/japanese-mode-1731

不具合(B27)

入力した値に文字列をつなぐと、「命令がまちがっています」の誤りになる。

x = 【外部からの入力】
表示する(x + "さん")
  • 期待: 誤りにならず、入力が たろう なら たろうさん と表示する
  • 実際: 2 行目に「「表示する(x + "さん")」は命令がまちがっています。つづりを確認するか、対応しているブロックを使ってください。」
  • y = x + "さん" も同じ。x = "a" のあとの x + "さん"、"さん" + x、表示する(x, "さん") は通る。
  • 【外部からの入力】 は Ruby では console.gets。console.gets + "さん" をブロックにできていないと思われる。

名前を入力してあいさつを表示するのは、入力の最初の例としてよく書く形。

確かめ方

プレビューの日本語タブに上の 2 行を書く。最終レビュー R12 を AI が確かめたときに見つけた。

Activity

  1. moved this to Sprint Backlog in Autopiloton Nov 28, 2026
  2. added
    🤖 autopilot
    on Nov 28, 2026
  3. moved this from Sprint Backlog to In Progress in Autopiloton Nov 28, 2026
  4. smalruby3-editor-bot commented on Nov 28, 2026

    @smalruby3-editor-bot
    Author

    🤖 対応 PR: #2619 (base: topic/japanese-mode-1731)

    この PR は非デフォルト base 宛てのため GitHub の Development 欄に表示されません。このコメントは autopilot が管理します(編集しないでください)。

  5. moved this from In Progress to Review in Autopiloton Nov 28, 2026
  6. added a commit that references this issue on Nov 28, 2026
  7. moved this from Review to Close in Autopiloton Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🤖 autopilot

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions