public void TestTempGlobalConflict()
{
// Test bug where temp was being treated as a global
var storyStr =
@"
-> outer
=== outer
~ temp x = 0
~ f(x)
{x}
-> DONE
=== function f(ref x)
~temp local
~x=x
{setTo3(local)}
=== function setTo3(ref x)
~x = 3
";
Story story = CompileString(storyStr);
Assert.AreEqual ("0\n", story.Continue ());
}