Skip to content

Fix missing indentation for @overridable annotation in RBS translation#909

Merged
Morriar merged 1 commit intomainfrom
at/fix-overridable-indentation
May 1, 2026
Merged

Fix missing indentation for @overridable annotation in RBS translation#909
Morriar merged 1 commit intomainfrom
at/fix-overridable-indentation

Conversation

@Morriar
Copy link
Copy Markdown
Contributor

@Morriar Morriar commented Apr 28, 2026

Summary

  • The @overridable annotation insert was missing the #{indent} suffix after the newline, causing the subsequent #: signature line to start at column 0 instead of matching the method's indentation level
  • All other annotations (@without_runtime, @final, @abstract, @override) already included the indent
  • Added a test case that exercises overridable inside a class to catch the indentation bug

Test plan

  • Added test_translate_to_rbs_method_sigs_with_overridable_annotation_indented which verifies correct indentation when translating an overridable sig inside a class

cc. @jesse-shopify

@Morriar Morriar requested a review from a team as a code owner April 28, 2026 14:54
The `@overridable` annotation insert was missing the `#{indent}` suffix
after the newline, causing the subsequent `#:` signature line to start
at column 0 instead of matching the method's indentation level. All
other annotations (`@without_runtime`, `@final`, `@abstract`, `@override`)
already included the indent.
@Morriar Morriar force-pushed the at/fix-overridable-indentation branch from e83dd54 to 1f0feaa Compare April 28, 2026 15:48
@Morriar Morriar merged commit a366fe7 into main May 1, 2026
13 checks passed
@Morriar Morriar deleted the at/fix-overridable-indentation branch May 1, 2026 15:30
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.

2 participants