Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Main {
- def main(): Unit = {
- if (new B().h() == new C().h()) {
- println("ok");
- }
- }
- }
- class A extends B {
- def d(x: String): String = {
- return h();
- }
- }
- class B extends C {
- }
- class C {
- var x: X;
- def h(): String = {
- return "asdf";
- }
- }
- class X {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement