Quantcast
Channel: LLDB - Swift Forums
Viewing all articles
Browse latest Browse all 33

LLDB-RPC-Server Playgrounds Crash

$
0
0

For some reason the following crashes on Xcode 16.1 RC Playgrounds Platforms iOS, Swift 6. No issues on Swift 5

import Cocoa

protocol VirtualPaksProtocol {
    associatedtype Base
    var base: Base { get }
}

struct VirtualPaks: VirtualPaksProtocol {
    typealias Base = Void
    var base: Base
    func echo() {
        
    }
}

func genericPaks<P: VirtualPaksProtocol>(_ p: P) -> P.Base {
    p.base
}

func opaquePaks() -> some VirtualPaksProtocol {
    VirtualPaks(base: ())
}

func boxedPaks() -> any VirtualPaksProtocol {
    VirtualPaks(base: ())
}

genericPaks(opaquePaks())
genericPaks(boxedPaks())
genericPaks(VirtualPaks(base: ()))
boxedPaks()
opaquePaks()

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 33

Trending Articles