Skip to content

Commit 4ef4815

Browse files
authored
Merge pull request #16383 from dotnet/merges/main-to-feature/nullness
Merge main to feature/nullness
2 parents 73d670d + 4a19eb4 commit 4ef4815

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

CoordinateXlif.targets

Lines changed: 0 additions & 3 deletions
This file was deleted.

CoordinateXliff.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project>
2+
<Target Name = "CoordinateXliff" DependsOnTargets="GenerateFSharpTextResources" BeforeTargets="GetXlfSources" />
3+
</Project>

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<Import Project="FSharpBuild.Directory.Build.targets" Condition = " '$(FSharpTestCompilerVersion)' == '' "/>
33
<Import Project="FSharpTests.Directory.Build.targets" Condition = " '$(FSharpTestCompilerVersion)' != '' "/>
4-
<Import Project="CoordinateXlif.targets" Condition = " '$(FSharpBuildAssemblyFile)' != '' and '$(XliffTasksAssembly)' != '' "/>
4+
<Import Project="CoordinateXliff.targets" Condition = " '$(FSharpBuildAssemblyFile)' != '' and '$(XliffTasksAssembly)' != '' "/>
55

66
<ItemGroup Condition="'$(UnitTestType)' == 'nunit'">
77
<PackageReference Include="NUnit" Version="$(NUnitVersion)" />

src/Compiler/Driver/CompilerDiagnostics.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ type PhasedDiagnostic with
395395
| 3390 -> false // xmlDocBadlyFormed - off by default
396396
| 3395 -> false // tcImplicitConversionUsedForMethodArg - off by default
397397
| 3559 -> false // typrelNeverRefinedAwayFromTop - off by default
398+
| 3560 -> false // tcCopyAndUpdateRecordChangesAllFields - off by default
398399
| 3579 -> false // alwaysUseTypedStringInterpolation - off by default
399400
| 3582 -> false // infoIfFunctionShadowsUnionCase - off by default
400401
| 3570 -> false // tcAmbiguousDiscardDotLambda - off by default

tests/FSharp.Compiler.ComponentTests/Diagnostics/Records.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let updateOk r = { r with F1 = 1 }
1717
let updateWarn r = { r with F1 = 1; F2 = "" }
1818
"""
1919
|> withLangVersion80
20+
|> withOptions ["--warnon:FS3560"]
2021
|> typecheck
2122
|> shouldFail
2223
|> withDiagnostics [
@@ -46,7 +47,6 @@ type R = { F1: int; F2: string }
4647
let updateWarn r = { r with F1 = 1; F2 = "" }
4748
"""
4849
|> withLangVersion80
49-
|> withOptions ["--nowarn:3560"]
5050
|> typecheck
5151
|> shouldSucceed
5252

@@ -86,6 +86,7 @@ let t2 (x: RecTy) (a: AnotherNestedRecTy) = { x with D.C.c = { a with A = 3 } }
8686
let t3 (x: RecTy) (a: AnotherNestedRecTy) = { x with D.C.c = { a with A = 3; B = 4 } }
8787
"""
8888
|> withLangVersion80
89+
|> withOptions ["--warnon:FS3560"]
8990
|> typecheck
9091
|> shouldFail
9192
|> withDiagnostics [

0 commit comments

Comments
 (0)