Compiler crash "checked decl cannot have error type" starting with the development snapshot build swift-DEVELOPMENT-SNAPSHOT-2025-02-15-a
#79916
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
constrained existentials
Feature → existentials: constrained existentials such as 'any Collection<Int>'
crash
Bug: A crash, i.e., an abnormal termination of software
existentials
Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
swift 6.1
swift 6.2
type checker
Area → compiler: Semantic analysis
TypeResolver
Description
The compiler crashes with this message:
Reproduction
Reduced test
Repro.swift
Command line
Stack dump
Expected behavior
No crash but this error
Environment
The latest macos development snapshot build https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-03-10-a/swift-DEVELOPMENT-SNAPSHOT-2025-03-10-a-osx.pkg
A quick bisecting shows that this crash started with the build
swift-DEVELOPMENT-SNAPSHOT-2025-02-15-a
and doesn't reproduce withswift-DEVELOPMENT-SNAPSHOT-2025-02-14-a
Additional information
No response
The text was updated successfully, but these errors were encountered: