Skip to content

SergeyPetrachkov/SwiftCompilerActorAndTypedThrowsBugSampleProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo project

Steps to reproduce the compiler crash

  1. Open the attached Swift Package.
  2. CMD+B to build the project.
  3. Go to ThreadSafeMockThrowingTypedErrorFunc.swift file for the details what was tried, what compiles and what triggers the crash
  4. Compare with MockThrowingTypedErrorFunc.swift, where everything is identical except for this is a final class, not an actor.

Steps to reproduce the runtime crash

  1. Open the attached Swift Package with Xcode 26 beta 4
  2. CMD+B to build the project
  3. CMD+U to run tests
  4. You’ll see a crash in ThreadSafeMockThrowingTypedErrorFunc.swift:L39
  5. Open CrashingTests.swift for more details

See also the attached stacktraces

About

Demo project for a Swift Compiler bug

Topics

Resources

Stars

Watchers

Forks

Languages