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
Describe the bug
Behaviour as described in this PR is occurring in my instance. #1255
To Reproduce
using Spectre.Console.Cli;
internal sealed class Cli : Command<Cli.Settings>
{
internal sealed class Settings : CommandSettings
{
}
public override int Execute(CommandContext context, Settings settings)
{
return 0;
}
}
Nullability of type of parameter 'context' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Nullability of type of parameter 'settings' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Error remains regardless if params have the [NotNull] annotation or not.
Edit:
Interestingly, I'm using version 0.47.0 (pulled this morning), but the referenced file CommandOfT.cs doesn't look like the one in main branch. The version I have does indeed have [NotNull] attributes on the Execute and Validate methods. Not sure what's going on here ...
The text was updated successfully, but these errors were encountered:
Information
Describe the bug
Behaviour as described in this PR is occurring in my instance.
#1255
To Reproduce
Nullability of type of parameter 'context' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Nullability of type of parameter 'settings' in method does not match overridden member 'int Spectre.Console.Cli.Command.Execute(CommandContext, TSettings)' (possibly because of nullability attributes)
Error remains regardless if params have the [NotNull] annotation or not.
Edit:
Interestingly, I'm using version 0.47.0 (pulled this morning), but the referenced file CommandOfT.cs doesn't look like the one in main branch. The version I have does indeed have [NotNull] attributes on the Execute and Validate methods. Not sure what's going on here ...
The text was updated successfully, but these errors were encountered: