你怎么知道 属性 属于哪个类别?

How do you tell which category the property belongs to?

typealias Names = String
typealias Works = String

let a: Names = Names()
let b: Works = Works()

if a is Names {// a is not Works
}

我怎么知道 "a" 属于 "Names" 而不是 "Works"?

谢谢!

How do I know if "a" belongs to "Names" instead of "Works"?

你没有,因为它没有。它们都是同一事物的名称。它们是完全可以互换的。某物是名称而不是作品是没有意义的。