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
Ubuntu 15.10 x86_64
md5: c9aa07c8aaa4b7beb7162c8ddd4fc6b5
relates to:
Issue Description:
String and Double optional values intialized to nil are getting POed as:
1> class Foo<T,U> { var t: T? var u: U? init() { t = nil; u = nil } init(_ x: T, _ y: U) { t = x; u = y } };(Foo<String,Double>(),Foo<Double,String>(3.14,"hello")) 1> class Foo<T,U> { 2. var t: T? 3. var u: U? 4. init() { t = nil; u = nil } 5. init(_ x: T, _ y: U) { t = x; u = y } 6. };(Foo<String,Double>(),Foo<Double,String>(3.14,"hello")) $R0: (Foo<String, Double>, Foo<Double, String>) = { 0 = { t = "" u = 0 } 1 = { t = 3.1400000000000001 u = "hello" } }
Note the default initializer of the class instance should have had t and u print out as nil.
The text was updated successfully, but these errors were encountered:
This is currently in the merge branch.
Sorry, something went wrong.
Is this resolved, or no longer valid? If either, this should be closed.
No branches or pull requests
Environment
Ubuntu 15.10 x86_64
Additional Detail from JIRA
md5: c9aa07c8aaa4b7beb7162c8ddd4fc6b5
relates to:
Issue Description:
String and Double optional values intialized to nil are getting POed as:
1> class Foo<T,U> {
var t: T?
var u: U?
init() { t = nil; u = nil }
init(_ x: T, _ y: U) { t = x; u = y }
};(Foo<String,Double>(),Foo<Double,String>(3.14,"hello"))
1> class Foo<T,U> {
2. var t: T?
3. var u: U?
4. init() { t = nil; u = nil }
5. init(_ x: T, _ y: U) { t = x; u = y }
6. };(Foo<String,Double>(),Foo<Double,String>(3.14,"hello"))
$R0: (Foo<String, Double>, Foo<Double, String>) = {
0 = {
t = ""
u = 0
}
1 = {
t = 3.1400000000000001
u = "hello"
}
}
Note the default initializer of the class instance should have had t and u print out as nil.
The text was updated successfully, but these errors were encountered: