view samples/compilerbug_004.tp @ 137:101fa04ee9e1

Fix calling methods on objects that are not self when self implements the method being called
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Aug 2013 21:46:05 -0700
parents 38127fbf5f9d
children
line wrap: on
line source

#{
	foo <- 42
	new <- {
		#{
			bar <- foo
		}
	}

	main <- {
		print: (string: ((new: ) bar)) . "\n"
	}

}