annotate run/private_01.d @ 2:de27ca625bf7

extended abstract/alias and template tests
author thomask
date Sun, 26 Sep 2004 12:07:39 +0000
parents
children f87ba6507260
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
1 class MyClass{
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
2 private int test(int i){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
3 return i+1;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
4 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
5 }
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
6
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
7 int main(){
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
8 MyClass c = new MyClass();
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
9 assert(c.test(2)==3);
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
10 return 0;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
11 }