Trivial system that consists of two source files leads to the:
Assets\TestSystem.cs(1,1): error SGICE003: This error indicates a bug in the DOTS source generators. We'd appreciate a bug report (Help -> Report a Bug...). Thanks! Error message: 'System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'count') |--| at System.Text.StringBuilder.Insert(Int32 index, String value, Int32 count) |--| at Unity.Entities.SourceGen.Common.TypeCreationHelpers.GenerateSourceTextForRootNodes(String generatedSourceFilePath, BaseTypeDeclarationSyntax originalSyntax, String generatedSyntax, CancellationToken cancellationToken) |--| at Unity.Entities.SourceGen.JobEntityGenerator.JobEntityGenerator.Execute(SourceProductionContext context, Compilation compilation, StructDeclarationSyntax candidate, Boolean checkUserDefinedQueriesForSchedulingJobs)'.
All previous Entities versions work fine.
Looks like the problem is with negated preprocessor symbol check block. Moving it below other using directives fixes the issue.
#if !TEST_SYMBOL
using UnityEngine;
#endif