mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously we could allow some invalid coercions to sneak past Sema. In most cases these would either cause crashes later down the pipeline or miscompiles. However, for coercions between collections, we emitted somewhat reasonable code that performed a force cast. This commit aims to preserve compatibility with those collection coercions that previously compiled, and emits a warning telling the user to use either 'as?' or 'as!' instead.
64 KiB
64 KiB