changeset 1135:2b58889c7d7e

name resolution and static function Carlos Santander <csantander619@gmail.com> 2006-07-09 news:e8sdrv$2k9c$1@digitaldaemon.com
author thomask
date Thu, 14 Sep 2006 07:15:39 +0000
parents 49aa2ca2f716
children 6d49ea394165
files run/s/static_37_A.d run/s/static_37_B.d run/s/static_37_C.d run/s/static_37_D.d run/s/static_37_E.d run/s/static_37_F.d run/s/static_37_G.d run/s/static_37_H.d run/s/static_37_I.d run/s/static_37_J.d run/s/static_37_K.d
diffstat 11 files changed, 374 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_A.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_A;
+
+class A{
+	int foo (){
+		return 1;
+	}
+	static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_B.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,36 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_B;
+
+class A{
+	int foo (){
+		return 1;
+	}
+	
+	private static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_C.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,36 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_C;
+
+class A{
+	int foo (){
+		return 1;
+	}
+	
+	protected static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_D.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,36 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_E;
+
+class A{
+	int foo (){
+		return 1;
+	}
+	
+	package static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_E.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,36 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_E;
+
+class A{
+	int foo (){
+		return 1;
+	}
+	
+	public static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_F.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_F;
+
+class A{
+	static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_G.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_G;
+
+class A{
+	private static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_H.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_H;
+
+class A{
+	protected static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_I.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_I;
+
+class A{
+	package static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_J.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_J;
+
+class A{
+	public static int foo (int i){
+		return i + 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_37_K.d	Thu Sep 14 07:15:39 2006 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Carlos Santander <csantander619@gmail.com>
+// @date@	2006-07-09
+// @uri@	news:e8sdrv$2k9c$1@digitaldaemon.com
+// @desc@	name resolution and static function
+
+module dstress.run.s.static_37_K;
+
+class A{
+	static int foo (int i){
+		return i + 1;
+	}
+	int foo (){
+		return 1;
+	}
+}
+
+class B{
+	int foo (int x){
+		return A.foo(x) * 2;
+	}
+}
+
+int main(){
+	B b = new B();
+
+	if(b.foo(2) != 6){
+		assert(0);
+	}
+
+	return 0;
+}