Skip to content

Add more known issue scenarios - #505

Open
pvcresin wants to merge 1 commit into
ruby:masterfrom
pvcresin:add-more-known-issues
Open

pvcresin wants to merge 1 commit into
ruby:masterfrom
pvcresin:add-more-known-issues

Conversation

@pvcresin

@pvcresin pvcresin commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

I have added more scenarios for code that TypeProf does not handle correctly yet. Each scenario fails on the current master.

  • Crashes: cyclic include, and an inline #: type with type arguments for a non-generic class
  • Invalid RBS output: absolute constant paths (class ::Foo), symbol keys that need quoting, Struct members ending with ?, inline type parameters, and string keys in record types
  • Wrong types: locals assigned in rescue/else/case in/branches with next, rescue => e, false in truthiness narrowing, Array#[] with a range on tuples, defined?, the value of attribute and index assignments, block params with a non-Array value, required keywords in RBS overloads, and splat arguments that depend on definition order
  • Missing support: prepend in Ruby code, private attr_reader, include in class << self, attr, constant aliases, self::X, block rest params, nested destructuring params, for index variables, hash pattern captures, keywords in inline #: types, keyword arguments to RBS methods that take a Hash, false in filter_map blocks, and assignments in while conditions

Additions, modifications, and deletions are welcome.

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.

1 participant