changeset 64:38127fbf5f9d

Add sample for bug involving accesing a property of a parent object as an initial value for a new object property
author Mike Pavone <pavone@retrodev.com>
date Sat, 14 Jul 2012 04:53:31 -0700
parents 86ebdfb33711
children b4190db72288
files samples/compilerbug_004.tp
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/samples/compilerbug_004.tp	Sat Jul 14 04:53:31 2012 -0700
@@ -0,0 +1,14 @@
+#{
+	foo <- 42
+	new <- {
+		#{
+			bar <- foo
+		}
+	}
+
+	main <- {
+		print: (string: ((new: ) bar)) . "\n"
+	}
+
+}
+