I’m seeing an assertion failure when I try to compile the following on Linux:

        typealias TypeMetadataAccessor = @convention(c) () -> AnyClass?

The assertion failing is:

    assert(getASTContext().LangOpts.EnableObjCInterop ||
           *repr != MetatypeRepresentation::ObjC);

in ExistentialMetatypeType::ExistentialMetatypeType(). Commenting it out and 
the code compiles and works.

Can someone that understands the compiler suggest the correct fix?

— Luke
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to