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
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generation
In an @objc class, if you implement subscript taking an Int or object, the Method that gets emitted has a NULL type encoding, which can cause crashes in code that is inspecting the runtime (debug-only in my case, but still annoying to track down and ideally the runtime data would at least have id/NSInteger-based key/return generic signatures.
Tested in swift-2.2-branch tip and in the 3/1 development snapshot.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generation
Attachment: Download
Additional Detail from JIRA
md5: af2286bc1ef40c275029860e0850cb51
Issue Description:
In an @objc class, if you implement subscript taking an Int or object, the Method that gets emitted has a NULL type encoding, which can cause crashes in code that is inspecting the runtime (debug-only in my case, but still annoying to track down and ideally the runtime data would at least have id/NSInteger-based key/return generic signatures.
Tested in swift-2.2-branch tip and in the 3/1 development snapshot.
See the attached sample, which produces:
The text was updated successfully, but these errors were encountered: