Closed rome-user closed 3 months ago
but if I delete self,
Generally there are no way to remove any formal (e.g. a
in { a }: b
) without potentially breaking the language semantics.
In this case, self
can be removed, but must have ...
to accept the self
formal. That is, the safe way to avoid ``unused-def'' is:
- { self }: { }
+ { ... }: { }
Although the semantics of ...
is different from just using self
.
Thanks! This solves my problem
Describe the bug See the following example
I get a warning that the variable self is unused, but if I delete self, I get the following error