Avatar
Avatar
ジュニア
@swift-5.10.1 // @_typeEraser(AnyP) protocol P {} struct ConcreteP1: P {} struct ConcreteP2: P {} struct AnyP: P { init(erasing base: some P) {} } struct Foo { dynamic var p: some P { ConcreteP1() } } extension Foo { @_dynamicReplacement(for: p) var replacedP: some P { ConcreteP2() } } print(Foo().p)
swift510 BOT 4/7/2024 3:03 AM
exit status: 255 with JIT session error: Symbols not found: [ $s4main3FooV9replacedPQrvgTX ] Failed to materialize symbols: { (main, { get_witness_table 4main10ConcreteP1VAA1PHPyHC.1, $s4main3FooV1pQrvpQOy_Qo_MD, $ss27_finalizeUninitializedArrayySayxGABnlF, $s4main3FooV1pQrvpQOMk, $s4main4AnyPVMn, symbolic _____y_Qo_ 4main3FooV1pQrvpQO, $s4main3FooV1pQrvpQOMg, $s4main10ConcreteP1VMa, $s4mainMXM, symbolic $s4main1PP, $s4main3FooV9replacedPQrvpQOMQ, $s4main10ConcreteP2VN, main, $sSa12_endMutationyyF, $s4main3FooV1pQrvg, get_witness_table 4main10ConcreteP2VAA1PHPyHC.2, $s4main10ConcreteP1VN, $s4main3FooVMa, $s4main3FooVACycfC, $s4main4AnyPVAA1PAAWP, symbolic _____ 4main4AnyPV, $ss5print_9separator10terminatoryypd_S2StFfA1_, $s4main10ConcreteP1VAA1PAAWP, $s4main10ConcreteP1VMn, $s4main3FooV1pQrvpQOMQ, $s4main4AnyPVAA1PAAMc, $s4main3FooVN, $s4main10ConcreteP2VMa, $s4main10ConcreteP2VMn, $ss5print_9separator10terminatoryypd_S2StFfA0_, symbolic x, $s4main3FooV9replacedPQrvgTI, $s4main3FooV9replacedPQrvg, $s4main1PMp, $s4main10ConcreteP1VACycfC, $s4main3FooVMn, $s4main3FooV1pQrvpQOMh, __swift_instantiateConcreteTypeFromMangledName, $s4main4AnyPVMa, $s4main3FooV1pQrvgTx, $s4main3FooV9replacedPQrvpQOMg, __swift_allocate_boxed_opaque_existential_0, $s4main4AnyPVN, $s4main10ConcreteP2VACycfC, $s4main3FooV1pQrvgTX, symbolic _____ 4main10ConcreteP2V, symbolic _____ 4main3FooV, $s4main3FooV1pQrvpQOMj, $s4main10ConcreteP2VAA1PAAMc, $s4main10ConcreteP2VAA1PAAWP, symbolic _____ 4main10ConcreteP1V, $s4main10ConcreteP1VAA1PAAMc }) }