Skip to content

Instantly share code, notes, and snippets.

@d6u
Created July 27, 2015 03:40
Show Gist options
  • Select an option

  • Save d6u/a2b9540faad9df733766 to your computer and use it in GitHub Desktop.

Select an option

Save d6u/a2b9540faad9df733766 to your computer and use it in GitHub Desktop.
class ClassA {
}
let ClassARef: ClassA.Type = ClassA.self
let a = ClassARef.init()
a is ClassA // true
let ClassARef2: ClassA.Type = b.dynamicType
let b = ClassARef2.init()
b is ClassA // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment