Roman
Roman

Reputation: 1498

Variable name conflicts with built-in function

My struct has property named "type".
So how can I now call built-in function type(of:) ?

Upvotes: 0

Views: 105

Answers (1)

matt
matt

Reputation: 535027

You can say Swift.type(of:whatever).

Upvotes: 3

Related Questions