Use 'type' as an attribute name in interface declaration #737
-
What I FoundHi guys, I noticed that
However, when using the type inference mechanism, the following rule is valid and
I find that
My IdeaTherefore, I think that supporting 'type' as an attribute name in interface declaration may be helpful to writing complicated grammar. It seems that I don't know if excluding these keywords in I could be wrong, any comments on this new feature are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @luan-xiaokun , this is something we're aware of. I also opened up an issue about this back in June. For now you can preface it with a There is a more appropriate data type rule to allow additional property names (like type) internally, which you've found here in as well ( |
Beta Was this translation helpful? Give feedback.
Hi @luan-xiaokun , this is something we're aware of. I also opened up an issue about this back in June. For now you can preface it with a
^
symbol to allow it, like^type
.There is a more appropriate data type rule to allow additional property names (like type) internally, which you've found here in as well (
FeatureName
). It just needs to be added to handle property names in a PR.