[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs0310-4.cs
blobd1e6e359433f27512ed327323c0cf6dde4de851a
1 // CS0310: The type `Foo' must have a public parameterless constructor in order to use it as parameter `a' in the generic type or method `C<a>'
2 // Line: 14
3 class C <a> where a : new () {
6 class Foo {
7 public Foo (int x) { }
10 class X
12 static void Main ()
14 C<Foo> x;