Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Created January 5, 2017 18:17
Show Gist options
  • Select an option

  • Save jeremytregunna/807c70246ccac0a2daea4e035ae19fce to your computer and use it in GitHub Desktop.

Select an option

Save jeremytregunna/807c70246ccac0a2daea4e035ae19fce to your computer and use it in GitHub Desktop.
protocol Fooable { var x: Int { get } }
class Foo: Fooable { lazy var x: Int = { return 42 }() }
let f = Foo() // No error here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment