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
CLR string: an undefined bang method raises TypeError "Mutating method" instead of NoMethodError #159
Left over from #141 (neither #148 nor #155 changed it).
A System::String turns any method name ending in ! into a "Mutating method" TypeError, even when no such method exists:
"a".to_clr_string.foo!# => TypeError: Mutating method 'foo!' called for an immutable string (System::String)"a".to_clr_string.upcase!# => TypeError: Mutating method 'upcase!' called for an immutable string (System::String)
An undefined method should be a NoMethodError, as CRuby raises for a String ("a".foo! gives NoMethodError: undefined method 'foo!' for an instance of String). The TypeError fits only a bang method that String actually defines (upcase!, gsub!, ...), because a CLR string cannot be changed in place.
Activity
Merge pull request #164 from Largo/claude/subagents-open-issues-53733d