Updated with review feedback.
[mono.git] / mcs / errors / cs1750-4.cs
1 // CS1750: Optional parameter expression of type `null' cannot be converted to parameter type `A'
2 // Line: 8
3
4 using System;
5
6 class GenericClass<T>
7 {
8         public GenericClass (GenericClass<T> g = null, A a = null)
9         {
10         }
11 }
12
13 class DerivedClass<T> : GenericClass<T>
14 {
15         public DerivedClass (GenericClass<T> g) : base(g)
16         {
17         }
18 }
19
20 public struct A
21 {
22         public int Field;
23 }