You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a constant's value is a HereDoc, the generated RBI contains syntax errors due to the weird syntax of HereDocs in method calls. (I found this when generating an RBI for Rack.)
To Reproduce
Generate an RBI for this code:
moduleFooCONST=<<-HERE This is a heredoc. HEREend
Expected behavior
# typed: strongmoduleFooCONST=T.let(<<-HERE,T.untyped) This is a heredoc. HEREend
Actual behavior
# typed: strongmoduleFooCONST=T.let(<<-HERE This is a heredoc.HERE, T.untyped)end
The text was updated successfully, but these errors were encountered:
Describe the bug
If a constant's value is a HereDoc, the generated RBI contains syntax errors due to the weird syntax of HereDocs in method calls. (I found this when generating an RBI for Rack.)
To Reproduce
Generate an RBI for this code:
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: