"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / errors / cs0315-5.cs
blob5c857a6186c10e86cac2fc6e849170131cbf66be
1 // CS0315: The type `int' cannot be used as type parameter `T' in the generic type or method `H<T>'. There is no boxing conversion from `int' to `I'
2 // Line: 27
4 using System;
6 interface I
10 class H<T> where T : I, new()
14 public class A
16 static void Test (Action a)
20 static void Foo<T>()
24 static void Main ()
26 Test (() => {
27 Foo<H<int>> ();
28 });