You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected the downcast to Self in List.boxed() to crash the program when I called boxed on DerivedList's instance. As it didn't, the property derived.foo is actually uninitialized.
The text was updated successfully, but these errors were encountered:
Environment
macOS 10.14.6
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Target: x86_64-apple-darwin18.7.0
Additional Detail from JIRA
md5: fbb65ac0c98f2c39a39b37ff1ba9c5f0
Issue Description:
The following code has undefined behavior:
I would have expected the downcast to
Self
inList.boxed()
to crash the program when I calledboxed
onDerivedList
's instance. As it didn't, the propertyderived.foo
is actually uninitialized.The text was updated successfully, but these errors were encountered: