// C:\filename(7,38): error CS4018: CallerFilePathAttribute cannot be applied because there are no standard conversions from type 'string' to type 'int'
// static void M1([CallerLineNumber,CallerFilePath,CallerMemberName] int i = 0) { Console.WriteLine(); }
static partial void F(object? x = null, object y = null);
static partial void F(object? x, object y) { }
static partial void G(object x, object? y);
static partial void G(object x = null, object? y = null) { }
static void M()
{
F();
G();
}
}";
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
comp.VerifyDiagnostics(
// (6,34): warning CS1066: The default value specified for parameter 'x' will have no effect because it applies to a member that is used in contexts that do not allow optional arguments
// static partial void G(object x = null, object? y = null) { }
// (6,52): warning CS1066: The default value specified for parameter 'y' will have no effect because it applies to a member that is used in contexts that do not allow optional arguments
// static partial void G(object x = null, object? y = null) { }