[SR-3207] Segfault with Obj-C parameter of (NSError* __autoreleasing __nonnull * __nullable) #45795
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
good first issue
Good for newcomers
Attachment: Download
Environment
Xcode 8.1 (8B62), command line app template (attached)
Additional Detail from JIRA
md5: a83cf30f388c234c30c5851dc159b2e4
is duplicated by:
Issue Description:
With the following setup:
MyObject.h:
MyObject.m:
main.swift
Compilation gets the following crash:
The issue appears to be that the
__nullable
and__nonnull
annotations are transposed, which is an easy mistake to make. The compiler should warn, error, and/or provide a fix-it, rather than crashing.The text was updated successfully, but these errors were encountered: