We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Swift version 4.0.1 (swiftlang-900.0.66 clang-900.0.37)
md5: 8871f937a74bcd0b7db112ed85778687
Issue Description:
If you launch Swift on the command line and give it the following code:
protocol Testable { } struct TestStruct: Testable { var num = 0 var str = "" } let test1 = TestStruct() let array: [Testable] = [test1]
Then the output you get is as follows:
test1: TestStruct = { num = 0 str = "" } array: [Testable] = 1 value { [0] = { num = 4300275808 str = "" } }
The "4300275808" is clearly wrong. If you change the code to be [TestStruct] rather than [Testable] then the problem goes away.
The text was updated successfully, but these errors were encountered:
jingham@apple.com (JIRA User), sound familiar?
Sorry, something went wrong.
No branches or pull requests
Environment
Apple Swift version 4.0.1 (swiftlang-900.0.66 clang-900.0.37)
Additional Detail from JIRA
md5: 8871f937a74bcd0b7db112ed85778687
Issue Description:
If you launch Swift on the command line and give it the following code:
Then the output you get is as follows:
The "4300275808" is clearly wrong. If you change the code to be [TestStruct] rather than [Testable] then the problem goes away.
The text was updated successfully, but these errors were encountered: