[SR-15956] [cxx-interop] Swift's type checking doesn't know how to deal with calling functions bound to inline namespace enum #58217
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
Additional Detail from JIRA
md5: 3aa3cef7c3ca75618957485c6518bced
Issue Description:
There’s an issue with the Swift’s type checker when invoking functions from the inline namespace.
E.g.
```
namespace X {
inline namespace Y {
void test();
struct other {};
}
}
```
```
import X
extension X.other {
var s: String { return “” }
}
func test() {
X.test() // error here.
}
func test2(_ x: X.other) {
let s = x.s // error here.
}
```
See: https://github.com/apple/swift/blob/main/test/Interop/Cxx/namespace/inline-namespace-function-call-broken.swift
The text was updated successfully, but these errors were encountered: