There was another post on here about this section of chapter 16 but its been closed.
I’m not super sure what’s going on here. I understand that the variable accountType is a type of Account, and that its set to BitcoinAccount.
But I though that that .self suffix assigns the Bitcoin account metatype to accountType.
Xcode tells be that the constant account os of type BitcoinAccount but I added an additional constructed variable to Bitcoin account called bitcoin I’m told that account has no member called bitcoin.
So I guess my question is, is the metatype of type that inherits a protocol simply the protocol?