Created
December 20, 2016 22:43
-
-
Save andyyhope/8e73250f321ef3c952c0fab283002053 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct Foo { } | |
enum Bar { | |
case hero(Any) | |
} | |
let foo = Foo() | |
let bar = Bar.hero(foo) | |
if case let .hero(foo) = bar, foo is Foo { | |
print(“This works”) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment