Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zats
Last active January 9, 2017 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zats/51ee043269f7bd302ba0637c730745cc to your computer and use it in GitHub Desktop.
Save zats/51ee043269f7bd302ba0637c730745cc to your computer and use it in GitHub Desktop.
Kill compiler with this one weird trick
import UIKit
class ViewController: UIViewController {
private var a1: Int!
private var a2: Int!
private var a3: Int!
private var a4: Int!
private var a5: Int!
private var a6: Int!
private var a7: Int!
private var a8: Int!
private var a9: Int!
private var a10: Int!
private var a11: Int!
private var a12: Int!
private var a13: Int!
private var a14: Int!
private var a15: Int!
private var aas: [Int?] {
return [
a1,
a2,
a3,
a4,
a5,
a6,
a7,
// Uncommenting these results in indefinite compilation
// a8,
// a9,
// a10,
// a11,
// a12,
// a13,
// a14,
// a15,
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment