public void TestArgumentNameCollisions()
{
CompileStringWithoutRuntime(@"
VAR global_var = 5
~ pass_divert(-> knot_name)
{variable_param_test(10)}
=== function aTarget() ===
~ return true
=== function pass_divert(aTarget) ===
Should be a divert target, but is a read count:- {aTarget}
=== function variable_param_test(global_var) ===
~ return global_var
=== knot_name ===
-> END
", testingErrors: true);
Assert.AreEqual(2, _errorMessages.Count);
Assert.IsTrue(HadError("conflicts with a Knot"));
Assert.IsTrue(HadError("conflicts with existing variable"));
}