I don’t understand your question. Those two lines of code should be an error 
and it’s exactly what the current draft is trying to fix.

This behavior is truly inconsistent.



-- 
Adrian Zubarev
Sent with Airmail

Am 5. Mai 2017 um 14:07:11, André Videla (andre.vid...@gmail.com) schrieb:

If you assume that label order is important why would you expect this to 
typecheck?

let (y: a, x: b) = (x: 1, y: 2) 

let pair: (y: Int, x: Int) = (x: 1, y: 2)

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to