2 // This bug exposes a problem when calling a struct constructor that is
3 // initialized from an instance constructor
6 public interface Interface
11 public struct Struct
: Interface
13 public Struct( int x
) { }
14 public int X { get { return 0; }
}
19 public User( Interface iface
) { }
24 Test() { t=new User (new Struct(5)); }
27 // This one was not handled before by the compiler
28 // constrast that to the use on the constructor above, that
31 User t2
=new User(new Struct(251));
35 Test tt
= new Test ();