[unit-tests] Fix Makefile.am when Mono is compiled with LLVM
[mono-project.git] / mcs / errors / cs0029-21.cs
blobb6d3c34b39a8d910fce8326bb4ccaaefce32efa2
1 // CS0029: Cannot implicitly convert type `T' to `EventHandler'
2 // Line: 14
4 using System;
6 public delegate void EventHandler (int i, int j);
8 public class Button {
10 public event EventHandler Click;
12 public void Connect<T> () where T : class
14 Click += default (T);