Skip to content

Instantly share code, notes, and snippets.

@kielgillard
Last active August 29, 2015 14:02
Show Gist options
  • Save kielgillard/5a470209c82f81b35e4b to your computer and use it in GitHub Desktop.
Save kielgillard/5a470209c82f81b35e4b to your computer and use it in GitHub Desktop.
Why is an enumeration type not allowed in a protocol?
// Playground - noun: a place where people can play
import UIKit
protocol Contract {
//Type not allowed here
enum Response: Int {
case Success = 0
case Failed = 1
}
}
var str = "Hello, playground"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment