1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00

Warn on deprecated brace initializer syntax

This commit is contained in:
Brian Fiete 2020-08-29 07:26:22 -07:00
parent ffee0a2aa3
commit 4369e07a55
12 changed files with 36 additions and 34 deletions

View file

@ -210,7 +210,7 @@ namespace System.Globalization
else
{
// For all others just use the an empty string (doesn't matter we'll never ask for it for other calendars)
this.saAbbrevEnglishEraNames = new String[] { "" };
this.saAbbrevEnglishEraNames = new String[] ( "" );
}
// Japanese is the only thing with > 1 era. Its current era # is how many ever

View file

@ -126,18 +126,18 @@ namespace System {
static readonly TimeSpan NullOffset = TimeSpan.MinValue;
static char8[] allStandardFormats = new char8[]
{
(
'd', 'D', 'f', 'F', 'g', 'G',
'm', 'M', 'o', 'O', 'r', 'R',
's', 't', 'T', 'u', 'U', 'y', 'Y',
} ~ delete _;
) ~ delete _;
const String RoundtripFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK";
const String RoundtripDateTimeUnfixed = "yyyy'-'MM'-'ddTHH':'mm':'ss zzz";
private const int DEFAULT_ALL_DATETIMES_SIZE = 132;
static String[] fixedNumberFormats = new String[] {
static String[] fixedNumberFormats = new String[] (
"0",
"00",
"000",
@ -145,7 +145,7 @@ namespace System {
"00000",
"000000",
"0000000",
} ~ delete _;
) ~ delete _;
////////////////////////////////////////////////////////////////////////////
//

View file

@ -54,14 +54,14 @@ namespace System.Globalization {
GregorianCalendarTypes m_type;
static readonly int[] DaysToMonth365 = new int[]
{
(
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365
} ~ delete _;
) ~ delete _;
static readonly int[] DaysToMonth366 = new int[]
{
(
0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366
} ~ delete _;
) ~ delete _;
private static volatile Calendar s_defaultInstance;
@ -426,7 +426,7 @@ namespace System.Globalization {
{
get
{
return (new int[] {ADEra} );
return (new int[] (ADEra) );
}
}

View file

@ -90,9 +90,9 @@ namespace System.Globalization {
// DO NOT UPDATE THIS WITHOUT UPDATING THAT STRUCTURE. IF YOU ADD BOOL, ADD THEM AT THE END.
// ALSO MAKE SURE TO UPDATE mscorlib.h in the VM directory to check field offsets.
// READTHIS READTHIS READTHIS
protected int32[] numberGroupSizes = new int32[] {3} ~ delete _;
protected int32[] currencyGroupSizes = new int32[] {3} ~ delete _;
protected int32[] percentGroupSizes = new int32[] {3} ~ delete _;
protected int32[] numberGroupSizes = new int32[] (3) ~ delete _;
protected int32[] currencyGroupSizes = new int32[] (3) ~ delete _;
protected int32[] percentGroupSizes = new int32[] (3) ~ delete _;
protected OwnedString positiveSign = .("+") ~ _.Dispose();
protected OwnedString negativeSign = .("-") ~ _.Dispose();
protected OwnedString numberDecimalSeparator = .(".") ~ _.Dispose();
@ -112,7 +112,7 @@ namespace System.Globalization {
protected OwnedString percentSymbol = .("%") ~ _.Dispose();
protected OwnedString perMilleSymbol = .("\u{2030}") ~ _.Dispose();
protected String[] nativeDigits = new .[] {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"} ~ DeleteNativeDigits();
protected String[] nativeDigits = new .[] ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9") ~ DeleteNativeDigits();
protected int32 numberDecimalDigits = 2;
protected int32 currencyDecimalDigits = 2;