annotate run/static_29.d @ 1599:d37b19f7e8bb

Move run/c/case_01 to nocompile.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 17:28:31 +0200
parents 52c9e86b6486
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
288
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
1 // $HeadURL$
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
2 // $Date$
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
3 // $Author$
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
4
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
5 // @author@ Carlos Santander B. <csantander619@gmail.com>
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
6 // @date@ 2005-02-15
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
7 // @uri@ news:cutof5$1e68$1@digitaldaemon.com
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 288
diff changeset
8 // @uri@ nntp://news.digitalmars.com/D.gnu/1039
288
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
9
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
10 module dstress.run.static_29;
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
11
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
12 class A{
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
13 static int test(){
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
14 return 5;
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
15 }
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
16 }
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
17
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
18 class B:A{
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
19 int check(){
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
20 return A.test+1;
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
21 }
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
22 }
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
23
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
24 int main(){
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
25 B b = new B();
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
26 assert(b.check()==6);
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
27 return 0;
568fa9d15b60 calling static function of a super class
thomask
parents:
diff changeset
28 }