1135
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Carlos Santander <csantander619@gmail.com>
|
|
6 // @date@ 2006-07-09
|
|
7 // @uri@ news:e8sdrv$2k9c$1@digitaldaemon.com
|
1379
|
8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=660
|
1135
|
9 // @desc@ name resolution and static function
|
|
10
|
|
11 module dstress.run.s.static_37_G;
|
|
12
|
|
13 class A{
|
|
14 private static int foo (int i){
|
|
15 return i + 1;
|
|
16 }
|
|
17 }
|
|
18
|
|
19 class B{
|
|
20 int foo (int x){
|
|
21 return A.foo(x) * 2;
|
|
22 }
|
|
23 }
|
|
24
|
|
25 int main(){
|
|
26 B b = new B();
|
|
27
|
|
28 if(b.foo(2) != 6){
|
|
29 assert(0);
|
|
30 }
|
|
31
|
|
32 return 0;
|
|
33 }
|