Avatar
Avatar
Iceman
@swift-5.7.3 @swift-5.8.1 protocol P1<C> { associatedtype C } protocol P2<C> { associatedtype C func f() -> any P1<C> } func g(_ p: any P2) { let _ = p.f() } (edited)
swift58 BOT 1/1/2023 1:31 PM
exit status: 134 with stderr:Unhandled coercion: (existential_type (protocol_composition_type)) (opened_archetype_type address=0xad7f7b8 (interface_type=dependent_member_type assoc_type=main.(file).P2.C@<stdin>:6:20 (base=generic_type_param_type depth=0 index=0)) (opened_existential=existential_type (protocol_type decl=main.(file).P2@<stdin>:5:10)) opened_existential_id=95EB1234-89D8-11ED-8FD6-4280E2F077D9) Stack dump: 0. Program arguments: /usr/bin/swift-frontend -frontend -interpret - -disable-objc-interop -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -module-name main 1. Swift version 5.8-dev (LLVM 0e21831b79c13d9, Swift a2934c0a847db7a) 2. Compiling with the current language version 3. While evaluating request TypeCheckSourceFileRequest(source_file "<stdin>") 4. While evaluating request TypeCheckFunctionBodyRequest(main.(file).g@<stdin>:10:6) 5. While type-checking statement at [<stdin>:10:21 - line:12:1] RangeText="{ let _ = p.f() " 6. While type-checking declaration 0xad5d230 (at <stdin>:11:5) 7. While evaluating request PatternBindingEntryRequest((unknown decl), 0, 0) 8. While type-checking expression at [<stdin>:11:13 - line:11:17] RangeText="p.f(" 9. While type-checking-target starting at <stdin>:11:15 Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): /usr/bin/swift-frontend[0x6543683] /usr/bin/swift-frontend[0x65413be] /usr/bin/swift-frontend[0x6543a0f] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7fa21cd94420] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fa21c20500b] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fa21c1e4859] /usr/bin/swift-frontend[0x1ada7cb] /usr/bin/swift-frontend[0x1af9f69] /usr/bin/swift-frontend[0x1afc38d] /usr/bin/swift-frontend[0x1ada046] /usr/bin/swift-frontend[0x1ad646a] /usr/bin/swift-frontend[0x1ad523e] /usr/bin/swift-frontend[0x1ad3532] /usr/bin/swift-fro