diff options
Diffstat (limited to 'tests/semantic/compare-type-check.vala')
-rw-r--r-- | tests/semantic/compare-type-check.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/semantic/compare-type-check.vala b/tests/semantic/compare-type-check.vala new file mode 100644 index 000000000..3065ae534 --- /dev/null +++ b/tests/semantic/compare-type-check.vala @@ -0,0 +1,8 @@ +class Foo { +} + +void main () { + var foo = new Foo (); + var bar = new Foo (); + assert (foo is Foo == bar is Foo); +} |