We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f595ca7 commit 1dab41cCopy full SHA for 1dab41c
lib/ClangImporter/ImportType.cpp
@@ -1283,8 +1283,9 @@ static ImportedType adjustTypeForConcreteImport(
1283
}
1284
1285
// SwiftTypeConverter turns block pointers into @convention(block) types.
1286
- // In a bridgeable context, or in the direct structure of a typedef,
1287
- // we would prefer to instead use the default Swift convention.
+ // In some contexts, we bridge them to use the Swift function type
+ // representation. This includes typedefs of block types, which use the
1288
+ // Swift function type representation.
1289
if (hint == ImportHint::Block) {
1290
if (canBridgeTypes(importKind)) {
1291
// Determine the function type representation we need.
0 commit comments