Skip to content

Commit dab6394

Browse files
committed
lang version collision in travis
1 parent 50c9746 commit dab6394

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

BinaryRelations/BinaryRelations.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
- vector cross and product</PackageReleaseNotes>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
<PackageId>MaxRev.BinaryRelations</PackageId>
19-
<Product>MaxRev.BinaryRelations</Product>
20-
<LangVersion>latest</LangVersion>
19+
<Product>MaxRev.BinaryRelations</Product>
2120
</PropertyGroup>
2221

2322
<ItemGroup>

BinaryRelations/Matrix/MatrixRandomizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class MatrixRandomizer
88
{
99
private readonly Random _random = new Random();
1010
private static MatrixRandomizer _instance;
11-
public static MatrixRandomizer Default => _instance ??= new MatrixRandomizer();
11+
public static MatrixRandomizer Default => _instance ?? (_instance = new MatrixRandomizer());
1212

1313
public int LowRandBounds { get; set; } = 0;
1414
public int MaxRandBounds { get; set; } = 100;

BinaryRelations/Matrix/MatrixRandomizer.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace MaxRev.Extensions.Matrix
1212
{
1313
private readonly Random _random = new Random();
1414
private static MatrixRandomizer _instance;
15-
public static MatrixRandomizer Default => _instance ??= new MatrixRandomizer();
15+
public static MatrixRandomizer Default => _instance ?? (_instance = new MatrixRandomizer());
1616

1717
public int LowRandBounds { get; set; } = 0;
1818
public int MaxRandBounds { get; set; } = 100;

0 commit comments

Comments
 (0)