1 // Compiler options: -langversion:future
8 class Foo
: IFoo
<string>
11 public Foo (string bar
)
15 public string Bar { get { return bar; }
}
22 string bar
= "Who is John Galt?";
23 IFoo
<string> foo
= new Foo(bar
);
24 IFoo
<object> foo2
= foo
;
25 if (!foo2
.Bar
.Equals (bar
))