C++ types declared within unimportable type are not imported #60005
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
The
MLIRContextC++ type is not imported into Swift by default, because is has a deleted copy constructor: https://github.com/llvm/llvm-project/blob/f0cd5389850589fbf8a3ce77cea2539579bd8028/mlir/include/mlir/IR/MLIRContext.h#L55However, another type (
Threading) declared withinMLIRContextis not imported, even though there is nothing preventing Swift from importing it.https://github.com/llvm/llvm-project/blob/f0cd5389850589fbf8a3ce77cea2539579bd8028/mlir/include/mlir/IR/MLIRContext.h#L57
Can Swift treat
MLIRContextas a namespace in this case, importing it as an enum with no cases?The text was updated successfully, but these errors were encountered: