Test case for issue #115.
This commit is contained in:
parent
4ff6b6fc27
commit
d55048ec5c
1 changed files with 19 additions and 0 deletions
19
src/test/run-pass/interface-narrowing.rs
Normal file
19
src/test/run-pass/interface-narrowing.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
||||
// Test case for issue #115.
|
||||
type base =
|
||||
obj {
|
||||
fn foo();
|
||||
};
|
||||
|
||||
obj derived() {
|
||||
fn foo() {}
|
||||
fn bar() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let d = derived();
|
||||
let b:base = d as base;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue