JavaCompilerCore/examples/hoti/WorkerExample.jav

17 lines
291 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
class Worker1{
void doSomething(String x){}
}
class Worker2{
void doSomething(Integer y){}
}
class Content1{
String getElem(){return("");}
}
class Content2{
Integer getElem(){return(1);}
}
class User{
meth(worker,content){
worker.doSomething(content.getElem());
}
}