summary refs log tree commit diff
path: root/src/test/run-pass/module-polymorphism4.rs
blob: 0824e5b49bb479272c176f8ef2b540ed363cc4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// This isn't really xfailed; it's used by the
// module-polymorphism.rc test
// xfail-test

fn main() {
    let cat1 = cat::inst::meowlycat;
    let cat2 = cat::inst::howlycat;
    let dog = dog::inst::dog;
    assert cat1.says() == ~"cat says 'meow'";
    assert cat2.says() == ~"cat says 'howl'";
    assert dog.says() == ~"dog says 'woof'";
}