using GLib;

public interface IFoo
{
}

public class Foo : IFoo
{
}

void main()
{
    var list1 = new List<Foo>();
    var list2 = new List<IFoo>();
    
    // Or:
    Foo o = new Foo();
    IFoo i = o;
}
