2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0313.cs
blob5b3d4e57e83c2d59b57a24800c5bef7e4a1296b6
1 // CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `S.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint of type `I'
2 // Line: 16
4 interface I
8 struct S : I
10 static void Foo<T> (T t) where T : I
14 static void Test (S? s)
16 Foo (s);