Replies: 2 comments
-
Right now, this code emit a warning in your compilation
Personally, I don't see a problem with making it an Regarding the 3 case:
I think it can make sense to generate a similar level error as for using My intuition is that it should be possible to detect this case, because we need to check that the body is not equal to @dbrattli @ncave What is your opinion in generating an error instead of a warning if |
Beta Was this translation helpful? Give feedback.
-
IMO it makes sense, but it could potentially break when recompiling some existing bindings (from Nuget) where those warning were just ignored. |
Beta Was this translation helpful? Give feedback.
-
I hit an issue where
Emit
ended up being used on a function that provided an implementation. This was the result of copy pasting a method signature that had anEmit
attribute and swapping the body for a real implementation, but it made me wonder if this should be a compile time error:Is there any reason these cases of misuse should be valid or aren't possible to detect?
Beta Was this translation helpful? Give feedback.
All reactions