Chapter 6: Playgrounds not working with Xcode 26.1

Xcode 26.1 throws an error:

expression failed to parse (no further compiler diagnostics)

on this code

// 2
let delayedPublisher = sourcePublisher..delay(for: .seconds(delayInSeconds), scheduler: DispatchQueue.main)

Both Starter and Final playgrounds affected.

I got this error once. I think basically it is a playground bug. Most times when I get an error in playgrounds for code I think should work, I run it in a terminal app and it runs fine. I suggest checking your code in a terminal app.

Hello,

Is the “expression failed to parse” error in Xcode 26.1 caused by the incorrect double-period (..) operator used instead of a single-period (.) when calling the delay operator EZ Pass DE on the sourcePublisher?

Best Regard,

William