[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git] / mcs / errors / cs0183-4.cs
blob8af4d902a6e0610d55315c6223eb8f51fbbef008
1 // CS0183: The given expression is always of the provided (`T') type
2 // Line: 10
3 // Compiler options: -warnaserror -warn:1
5 class X
7 static bool Foo<T> () where T : struct
9 T o = default (T);
10 return o is T;