Closed swift-ci closed 7 years ago
Can you post the back trace ad whether or not this happens with optimization?
Comment by huangguiyang (JIRA)
@gottesmm OK, the back trace is shown above.
Thanks!
Hmm:
(lldb) print srcTy.dump()
(function_type escaping
(input=tuple_type num_elements=0)
(output=tuple_type num_elements=0))
(lldb) print destTy.dump()
(function_type escaping
(input=struct_type decl=Swift.(file).Int)
(output=tuple_type num_elements=0))
This should not type check. The inner closure has the wrong type.
Environment
Mac OS X 10.11.2 Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, SILGen | |Assignee | @slavapestov | |Priority | Medium | md5: a21fb6465b4af12612744c35d1bafa27Issue Description:
Save this snippet as file '1.swift', run command
or compile the snippet in Xcode, the result is the same.
backstrace: