codegen: Fix floating reference regression with Variants
[vala-gnome.git] / tests / objects / bug593137.vala
blob6162e023ed1d317446fd249171ea45492ebf3970
1 class Bar : Object {
2 public Bar (Type type) {
3 assert (type == typeof (string));
7 class Foo<G> : Bar {
8 public Foo () {
9 base (typeof (G));
13 void main () {
14 var foo = new Foo<string> ();