Skip to content

Instantly share code, notes, and snippets.

@JRHeaton
Created January 26, 2016 04:03
Show Gist options
  • Save JRHeaton/6d8a1c0e8e242bba2e32 to your computer and use it in GitHub Desktop.
Save JRHeaton/6d8a1c0e8e242bba2e32 to your computer and use it in GitHub Desktop.
~> cat test.swift
print((0, 1) == (0, 1))
/tmp
~> sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
/tmp
~> swift test.swift
test.swift:1:14: error: binary operator '==' cannot be applied to two '(Int, Int)' operands
print((0, 1) == (0, 1))
~~~~~~ ^ ~~~~~~
/tmp
~> sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/
/tmp
~> swift test.swift
true
/tmp
~> cat test2.swift
#if swift(>=2.2)
print("2.2 yo")
#endif
/tmp
~> swift test2.swift
test2.swift:1:5: error: unexpected target configuration expression (expected 'os' or 'arch')
#if swift(>=2.2)
^
/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment