Failed to produce diagnostic with optionals and generics (minimal repro) #64238
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
expressions
Feature: expressions
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
generics
Feature: generic declarations and types
swift 5.9
type checker
Area → compiler: Semantic analysis
type inference
Feature: type inference
unexpected error
Bug: Unexpected error
Description
The Swift compiler produces a fatal error when compiling a combination of generics and optionals.
Steps to reproduce
Compile the following with
swiftc:Output:
Expected behavior
A diagnostic should be produced and the compiler should not
fatalErrorEnvironment
The text was updated successfully, but these errors were encountered: