|
|
|
@ -238,16 +238,16 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
@@ -238,16 +238,16 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
|
|
|
|
|
static void ToStringGeneric<T>(ref T mutRef, in T immutableRef) where T : struct |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("ToStringGeneric:"); |
|
|
|
|
mutRef.ToString(); |
|
|
|
|
mutRef.ToString(); |
|
|
|
|
Console.WriteLine(mutRef.ToString()); |
|
|
|
|
Console.WriteLine(mutRef.ToString()); |
|
|
|
|
T copyFromMut = mutRef; |
|
|
|
|
copyFromMut.ToString(); |
|
|
|
|
immutableRef.ToString(); |
|
|
|
|
immutableRef.ToString(); |
|
|
|
|
Console.WriteLine(copyFromMut.ToString()); |
|
|
|
|
Console.WriteLine(immutableRef.ToString()); |
|
|
|
|
Console.WriteLine(immutableRef.ToString()); |
|
|
|
|
T copyFromImmutable = immutableRef; |
|
|
|
|
copyFromImmutable.ToString(); |
|
|
|
|
mutRef.ToString(); |
|
|
|
|
immutableRef.ToString(); |
|
|
|
|
Console.WriteLine(copyFromImmutable.ToString()); |
|
|
|
|
Console.WriteLine(mutRef.ToString()); |
|
|
|
|
Console.WriteLine(immutableRef.ToString()); |
|
|
|
|
} |
|
|
|
|
#endif
|
|
|
|
|
} |
|
|
|
|