[SR-9574] Generated header doesn't import Foundation when adopting throwing method. #52021
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
$ swift --version
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: 264cd7f6d84708db12b9c5412b267710
duplicates:
Issue Description:
If there is throwing method and no Foundation types in public @objc interface, generated header doesn't include Foundation, and it produces compile time error:
Error:
test_module-Swift.h contains only
and no other imports.
The text was updated successfully, but these errors were encountered: