wickwirew / Runtime

A Swift Runtime library for viewing type info, and the dynamic getting and setting of properties.
MIT License
1.08k stars 94 forks source link

Fix Factory `createInstance` for class types on linux platforms #95

Closed Supereg closed 3 years ago

Supereg commented 3 years ago

My comment in https://github.com/wickwirew/Runtime/issues/49#issuecomment-872265231 explains the issue and how to resolve (to my understanding and knowledge) in detail.

The changes in this PR have proven to be working: see GitHub CI Run (Note this run includes the PRs #93 and #94)

This PR makes two adjustments to the createClass method:

Further, this PR reenables some tests cases which were previously skipped on linux platforms (which allowed for this issue being unnoticed).