[swift-dev] Trying to use Swift libSyntax API. "Module compiled with Swift 4.1 cannot be imported in Swift 4.0.1"

2017-10-16 Thread Michael Gubik via swift-dev
I'd like to try the Swift libSyntax API. I did a fresh clone and compiled with $ ./utils/build-script --release-debuginfo --xcode using Xcode 9 beta 2 (9B46). Now I'd like to try SwiftSyntax so I created a new Xcode project (TestLibSyntax) and copied these three files to a project folder (/Users/

[swift-dev] Test case "tuple_arguments.swift" failed when compiler is built in debug mode on x86_64

2017-10-16 Thread Sam Ding via swift-dev
Hi all, I test the case "tuple_arguments.swift" for v4.0 and found it is failed when the swift compiler is built in "-d" debug mode, but it is passed when built in release mode. Here is a simple test case: // SR-4738 let sr4738 = (1, (2, 3)) [sr4738].map { (x, (y, z)) -> Int in x + y