diff options
Diffstat (limited to 'tests/src/Loader/classloader/generics/regressions/448208/b448208.cs')
-rw-r--r-- | tests/src/Loader/classloader/generics/regressions/448208/b448208.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/Loader/classloader/generics/regressions/448208/b448208.cs b/tests/src/Loader/classloader/generics/regressions/448208/b448208.cs new file mode 100644 index 0000000000..990b50e1ad --- /dev/null +++ b/tests/src/Loader/classloader/generics/regressions/448208/b448208.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +// this test is regression test for VSW 448208 +// A program AVed if there was a readonly static in a generic type + + +using System; + +public class GenType1<T> +{ + static readonly int s_i = 0; + + public static bool foo() + { + return s_i == 0; + } + +} + +public class Test +{ + public static int Main() + { + GenType1<int>.foo(); + Console.WriteLine("PASS"); + return 100; + } +} |