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
{{ message }}
Repository navigation
[Enhancement] Improve Inline Object Type Literal Support #45
Currently, T-Ruby's inline object type literal ({ field: Type }) support is inconsistent across different contexts. This issue tracks the work to improve and unify this support.
Current Status
Context
Status
Example
Function parameters
✅ Supported
def foo(config: { host: String, port: Integer })
Interface members
✅ Supported
interface Config { settings: { debug: Boolean } }
Class fields
⚠️ Unverified
@info: { name: String, age: Integer }
Variable declarations
❌ Not supported
config: { host: String } = { ... }
Technical Details
Root Cause
The parse_typed_assignment() method in token_declaration_parser.rb:458 only accepts :constant tokens in the type position, preventing hash literal types from being parsed in variable declarations.
Activity
[-]Improve Inline Object Type Literal Support[/-][+][Enhancement] Improve Inline Object Type Literal Support[/+]