Last active
August 29, 2015 14:02
-
-
Save kielgillard/5a470209c82f81b35e4b to your computer and use it in GitHub Desktop.
Why is an enumeration type not allowed in a protocol?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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