package callhtest
class Foo {
def returnInt(x:Int): Int = {
2*x
}
def returnInt2(x:Int): Int = {
2*x
}
}
class Bar(svc:Foo) {
def callService() = {
val x = svc.returnInt(2)
val y = svc.returnInt2(2)
}
def callService2() = {
val x = svc.returnInt(2) // this call is not seen, when assigned.
svc.returnInt2(2)
}
}
Leave a comment
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|