Add more runtime typedef_classforward_same_name runtime testing
This commit is contained in:
parent
3617e22fda
commit
ce6960de92
3 changed files with 27 additions and 6 deletions
|
|
@ -15,8 +15,12 @@ public class typedef_classforward_same_name_runme {
|
|||
public static void main(String argv[]) {
|
||||
Foo foo = new Foo();
|
||||
foo.setX(5);
|
||||
if (typedef_classforward_same_name.extract(foo) == 5) {
|
||||
// All good!
|
||||
}
|
||||
if (typedef_classforward_same_name.extractFoo(foo) != 5)
|
||||
throw new RuntimeException("unexpected value");
|
||||
|
||||
Boo boo = new Boo();
|
||||
boo.setX(5);
|
||||
if (typedef_classforward_same_name.extractBoo(boo) != 5)
|
||||
throw new RuntimeException("unexpected value");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue