[SR-15896] Generic NSObject subclasses fail to be realized when nested within function #58157
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
nested types
Feature: nested types
objective-c interop
Feature: Interoperability with Objective-C
Environment
Swift version 5.5.2
Additional Detail from JIRA
md5: 01bac88df2cee847817186e8f82bfebb
Issue Description:
When a generic subclass of NSObject is declared within the body of a function, that class is never realized, and
NSClassFromString
returnsnil
. Demonstration:Additional discussion on forums.swift.org.
The text was updated successfully, but these errors were encountered: