Skip to content

Fix NoMethodError in SigTySingletonNode#show due to uninitialized @args#430

Open
sinsoku wants to merge 1 commit intoruby:masterfrom
sinsoku:fix-singleton-show-nil-args
Open

Fix NoMethodError in SigTySingletonNode#show due to uninitialized @args#430
sinsoku wants to merge 1 commit intoruby:masterfrom
sinsoku:fix-singleton-show-nil-args

Conversation

@sinsoku
Copy link
Copy Markdown
Contributor

@sinsoku sinsoku commented Apr 10, 2026

SigTySingletonNode#initialize did not initialize @Args, causing
a NoMethodError when #show was called during return type checking.
This occurred when a method annotated with singleton(X) returned
a mismatched type.

SigTySingletonNode#initialize did not initialize @Args, causing
a NoMethodError when #show was called during return type checking.
This occurred when a method annotated with singleton(X) returned
a mismatched type.
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.

1 participant