You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcF[Tany](valueT) T { returnvalue }
varA=F[string]("string") // unnecessary type arguments
Currently the editor will prompt me "unnecessary type arguments" at the second line since the type argument T can be inferred automatically as string. For some reason I want to suppress this analyzer message, but only for this specific line instead of globally. Is there any solution for the job?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Consider the following snippet:
Currently the editor will prompt me "unnecessary type arguments" at the second line since the type argument
T
can be inferred automatically asstring
. For some reason I want to suppress this analyzer message, but only for this specific line instead of globally. Is there any solution for the job?Beta Was this translation helpful? Give feedback.
All reactions