Skip to content

fix(ruby): 値を返すメソッドを定義ブロックの引数に渡すと「引数の型がまちがっています」になる #2126

Done

Description

@smalruby3-editor-bot

何が起きるか

値を返すメソッドの戻り値を、別の定義ブロックの引数として渡すと、ブロックにするときに「My Block "bar" の引数の型がまちがっています」になる。develop でも起きる。

def foo(n)
  return n * 2
end

def bar(n)
  say(foo(n))
end

bar(3)

期待

エラーにならずにブロックになる(または、ブロックにできない理由をその行で正しく伝える)。

#2114 / #2116 の直し(PR #2123)の調べで見つかった。

🤖 Generated with Claude Code

Activity

  1. moved this to Sprint Backlog in Autopiloton Nov 24, 2026
  2. added
    🙋 HITL
    on Nov 24, 2026
  3. added
    🤖 autopilot
    and removed
    🙋 HITL
    on Nov 25, 2026
  4. moved this from Sprint Backlog to In Progress in Autopiloton Nov 27, 2026
  5. moved this from In Progress to Review in Autopiloton Nov 27, 2026
  6. added
    🙋 HITL
    on Nov 27, 2026
  7. added a commit that references this issue on Nov 27, 2026
  8. moved this from Review to Close in Autopiloton Nov 27, 2026
  9. removed
    🙋 HITL
    on Nov 27, 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