changeset 724:5c568eb016c0

unclear nested class documentation
author thomask
date Fri, 28 Oct 2005 21:33:48 +0000
parents 9a2158064fdd
children 5a0ed66a88d4
files undefined/class_19_A.d undefined/class_19_B.d
diffstat 2 files changed, 62 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/class_19_A.d	Fri Oct 28 21:33:48 2005 +0000
@@ -0,0 +1,35 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Deewiant <deewiant.doesnotlike.spam@gmail.com>
+// @date@	2005-10-14
+// @uri@	news:dionmt$afm$1@digitaldaemon.com
+
+module dstress.undefined.class_19_A;
+
+class Outer{
+	this(){
+	}
+	
+	class Inner{
+		this(){
+		}
+		
+		Inner foo(){
+			return new Inner();
+		}
+	}
+	
+	Inner dummy(){
+		Inner i = new Inner;
+		return i.foo();
+	}
+}
+
+int main(){
+	Outer o = new Outer();
+	Outer.Inner i = o.dummy();
+	assert(i);
+	return 0;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/class_19_B.d	Fri Oct 28 21:33:48 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	dennis luehring <dl.soluz@gmx.net>
+// @date@	2005-10-26
+// @uri@	news:djo1km$280i$1@digitaldaemon.com
+
+module dstress.undefined.class_19_B;
+
+class Outer{
+	this(){
+	}
+	
+	class Inner{
+		this(){
+		}
+	}
+}
+
+int main(){
+	Outer o = new Outer;
+	Outer.Inner i = new o.Inner();
+	assert(i);
+	
+	return 0;
+}