Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
389 B
C#

// CS0453: The type `B.M' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo.Test_2<T>(this T)'
// Line: 20
using System;
public static class Foo
{
public static string Test_2<T> (this T s) where T : struct
{
return null;
}
}
namespace B
{
public class M
{
public static void Main ()
{
new M().Test_2();
}
}
}