Skip to content

Commit 4385dd3

Browse files
committed
Misc cleanup. Fixed compiler warnings in tests.
1 parent a92d8da commit 4385dd3

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Biohazrd.CSharp/CSharpLibraryGenerator.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Biohazrd.OutputGeneration.Metadata;
44
using Biohazrd.Transformation;
55
using ClangSharp.Pathogen;
6-
using System;
76
using System.Collections.Generic;
87
using System.Collections.Immutable;
98
using System.Diagnostics;

Tests/Biohazrd.Tests.Common/Biohazrd.Tests.Common.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
55
<XunitAssertsRoot>../../external/assert.xunit/</XunitAssertsRoot>
6-
<DefineConstants>$(DefineConstants);XUNIT_NULLABLE</DefineConstants>
6+
<DefineConstants>$(DefineConstants);XUNIT_NULLABLE;XUNIT_SPAN</DefineConstants>
77
<IsTestProject>false</IsTestProject>
88
</PropertyGroup>
99

Tests/Biohazrd.Transformation.Tests/LiftAnonymousUnionFieldsTransformationTests.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using Biohazrd.CSharp;
22
using Biohazrd.Tests.Common;
33
using Biohazrd.Transformation.Common;
4+
using System;
45
using Xunit;
56

67
namespace Biohazrd.Transformation.Tests
78
{
9+
[Obsolete(nameof(LiftAnonymousUnionFieldsTransformation) + " has been superseded by " + nameof(LiftAnonymousRecordFieldsTransformation) + " and " + nameof(StripUnreferencedLazyDeclarationsTransformation) + ".")]
810
public sealed class LiftAnonymousUnionFieldsTransformationTests : BiohazrdTestBase
911
{
1012
private void AssertNoUnions(TranslatedLibrary library)

0 commit comments

Comments
 (0)