Skip to content

Instantly share code, notes, and snippets.

@cassdeckard
Created August 10, 2016 19:55
Show Gist options
  • Select an option

  • Save cassdeckard/bb0e09bf10ea31f4c30172101487d079 to your computer and use it in GitHub Desktop.

Select an option

Save cassdeckard/bb0e09bf10ea31f4c30172101487d079 to your computer and use it in GitHub Desktop.
lldb crashes when I try to make Dictionary parameter in a closure a "var"
//: Playground - noun: a place where people can play
import Foundation
// OK:
var test: ([Int : Int], Int) -> [Int : Int] = { (x, y) in x }
// CRASH:
//var test2: ([Int : Int], Int) -> [Int : Int] = { (var x, y) in x }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment