p-x9 / AliasMacro

🎭 A Swift macros for defining aliases for types, functions, variables, etc.
MIT License
30 stars 0 forks source link

Throw error if varDecl has multiple bindings #1

Closed p-x9 closed 1 year ago

p-x9 commented 1 year ago

In swift, the following statements are also possible

var val1, val2: String

At this time, if Alias is set as follows, the variable name will be duplicated.

@Alias("value")
var val1, val2: String