apple / swift-atomics

Low-level atomic operations for Swift
Apache License 2.0
1.08k stars 51 forks source link

ManagedAtomic doesn't seem to work in test-cases #112

Open ThrudTheBarbarian opened 6 months ago

ThrudTheBarbarian commented 6 months ago

If I have an I-var of a ManagedAtomic in a Swift framework, and then set up a test case in the same Xcode project, in the associated test target created by Xcode. Even importing "@testable" won't let me extend the class that contained the ManagedAtomic. It returns

"Cannot inherit from class 'QSEntity' because it has overridable members that could not be loaded"

Information

Checklist

Steps to Reproduce

/\ | Class definition */ class TestEntity : QSEntity { }



### Expected behavior
I'd expect a class containing a ManagedAtomic as an i-var to be importable into another class in the associated test target

### Actual behavior
- Set up as above
- Notice that the error message `Cannot inherit from class 'QSEntity' because it has overridable members that could not be loaded` appears on the TestEntity declaration line.
- Comment out the ManagedAtomic from the QSEntity class, ignoring any compilation issues where you've used it (for now)
- Notice that the "Cannot inherit..." error goes away