swift3 - Why a dynamic class variable can't be static at the same time? -
i'm writing class should provide dynamic access members objc. , @ same time, class members should static this
class model{ dynamic static var x = 100 }
but compiler returns error <unknown>:0: error: declaration cannot both 'final' , 'dynamic'
.
but why? what's matter?
Comments
Post a Comment