[SR-12261] Erratic type inference makes it seem like an error can be detected at compile time or runtime or not at all #54689
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
runtime
The Swift Runtime
type checker
Area → compiler: Semantic analysis
Environment
Default toolchain of Xcode 11.3.1 (11C504)
Additional Detail from JIRA
md5: 9534538213f24118d8a1a13770a2c36f
Issue Description:
Forum post and thread with further details:
https://forums.swift.org/t/34044/6
Demonstration Program A (shows expected behavior):
Demonstration Program B (shows unexpected behavior for Array):
Demonstration Program C (shows a different unexpected behavior for Optional):
The text was updated successfully, but these errors were encountered: