Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git] / mcs / errors / cs0453-8.cs
1 // CS0453: The type `dynamic' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Tester.Foo<T>(T)'
2 // Line: 10
3
4 class Tester
5 {
6         static void Foo<T> (T t) where T : struct
7         {
8         }
9         
10         public static int Main ()
11         {
12                 dynamic d = 1;
13                 Foo<dynamic>(d);
14                 return 0;
15         }
16 }