Loading files
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Threading.Tasks;
namespace Hast.TestInputs.Invalid;
public class InvalidParallelCases
{
public void InvalidExternalVariableAssignment(uint input)
{
var task = Task.Factory.StartNew(
() =>
{
// If this would be something like input = 5 then it would correctly be substituted with a const.
input += 5;
return input == 5;
},
default,
TaskCreationOptions.None,
TaskScheduler.Default);
}
}