Merge branch 'upstream'

Former-commit-id: bf3242079231e412032421f9e870144907be7b9c
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-16 08:28:20 +00:00
48 changed files with 71 additions and 40 deletions

View File

@ -1 +1 @@
e3fddfdc54d7204c3e52ef2273ea8a313426467c 50b8a3ec381dbed9a226af25917bb89e42d14807

View File

@ -1 +1 @@
f4f0b4d1402862ad9ca37078d37fedfb7dd03bed 1850540ae94c01271acde0c080cf58aa4f16b8e1

View File

@ -34,7 +34,7 @@ static class Consts
// Use these assembly version constants to make code more maintainable. // Use these assembly version constants to make code more maintainable.
// //
public const string MonoVersion = "5.18.0.239"; public const string MonoVersion = "5.18.0.240";
public const string MonoCompany = "Mono development team"; public const string MonoCompany = "Mono development team";
public const string MonoProduct = "Mono Common Language Infrastructure"; public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors"; public const string MonoCopyright = "(c) Various Mono authors";

View File

@ -85,6 +85,31 @@ public class Tests2 {
} }
} }
public struct TestEnumeratorInsideGenericStruct<TKey, TValue>
{
private KeyValuePair<TKey, TValue> _bucket;
private Position _currentPosition;
internal TestEnumeratorInsideGenericStruct(KeyValuePair<TKey, TValue> bucket)
{
_bucket = bucket;
_currentPosition = Position.BeforeFirst;
}
public KeyValuePair<TKey, TValue> Current
{
get
{
if (_currentPosition == Position.BeforeFirst)
return _bucket;
return _bucket;
}
}
private enum Position
{
BeforeFirst
}
}
public struct AStruct : ITest2 { public struct AStruct : ITest2 {
public int i; public int i;
public string s; public string s;
@ -384,6 +409,7 @@ public class Tests : TestsBase, ITest2
new Tests ().invoke_abort (); new Tests ().invoke_abort ();
new Tests ().evaluate_method (); new Tests ().evaluate_method ();
Bug59649 (); Bug59649 ();
inspect_enumerator_in_generic_struct();
return 3; return 3;
} }
@ -576,6 +602,11 @@ public class Tests : TestsBase, ITest2
ss_nested_with_two_args(ss_nested_arg (), ss_nested_arg ()); ss_nested_with_two_args(ss_nested_arg (), ss_nested_arg ());
} }
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public static void inspect_enumerator_in_generic_struct() {
TestEnumeratorInsideGenericStruct<String, String> generic_struct = new TestEnumeratorInsideGenericStruct<String, String>(new KeyValuePair<string, string>("0", "f1"));
}
[MethodImplAttribute (MethodImplOptions.NoInlining)] [MethodImplAttribute (MethodImplOptions.NoInlining)]
public static int ss_nested_with_two_args (int a1, int a2) { public static int ss_nested_with_two_args (int a1, int a2) {
return a1 + a2; return a1 + a2;

View File

@ -1 +1 @@
7de7a22a0ef9acbae4274e23f83698cd8a31f7da a57e595679838703ee0f1cc00d816eb02c1202dd

View File

@ -1 +1 @@
6906969e1560c229aa270d601a88da36d3b87383 99ac89762b0486143cd94389d663f3d468971049

View File

@ -1 +1 @@
8260010ca66cf7bf43ddbb1ae0b222492747167a 92150a4adbc3693f0a537d4684a70db6ff76fe4e

View File

@ -1 +1 @@
2d5243eb818f2ae2bd193faffdc1cd4ea4700dd7 75ad79098e2f89377f4df5957f76b1ef29d83a5c

View File

@ -1 +1 @@
3883499a603ad6ea46014f6bb783606055560eda 79c306cbcdb607dbe5d0473cfafe486e74caeade

View File

@ -1 +1 @@
812d2587a089ec5a9f3a2433ebb0b07215307bd5 cb1d70a2508cb6cfa69074beae16b8723cad144b

View File

@ -1 +1 @@
8f029d8d6f60059315f0005365154e32d83d659e 4f81f19a4003e667bea57bf013de300e57fb70f7

View File

@ -1 +1 @@
a0c4a95a9d6ac6211cff450c608792d78d313b7e 41ea2cd740048d39a162fc9e475ba138c9597395

View File

@ -1 +1 @@
6906969e1560c229aa270d601a88da36d3b87383 99ac89762b0486143cd94389d663f3d468971049

View File

@ -1 +1 @@
8260010ca66cf7bf43ddbb1ae0b222492747167a 92150a4adbc3693f0a537d4684a70db6ff76fe4e

View File

@ -1 +1 @@
2d5243eb818f2ae2bd193faffdc1cd4ea4700dd7 75ad79098e2f89377f4df5957f76b1ef29d83a5c

View File

@ -1 +1 @@
3883499a603ad6ea46014f6bb783606055560eda 79c306cbcdb607dbe5d0473cfafe486e74caeade

View File

@ -1 +1 @@
812d2587a089ec5a9f3a2433ebb0b07215307bd5 cb1d70a2508cb6cfa69074beae16b8723cad144b

View File

@ -1 +1 @@
8f029d8d6f60059315f0005365154e32d83d659e 4f81f19a4003e667bea57bf013de300e57fb70f7

Some files were not shown because too many files have changed in this diff Show More