Skip to content

Commit 16aea55

Browse files
dsymebaronfel
authored andcommitted
code cleanup prior to optional interop improvements (#7276)
* add test cases we need to make work * cleanup method call argument processing
1 parent b1435b9 commit 16aea55

File tree

5 files changed

+564
-488
lines changed

5 files changed

+564
-488
lines changed

src/fsharp/ConstraintSolver.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ and SolveTypeIsNonNullableValueType (csenv: ConstraintSolverEnv) ndeep m2 trace
19311931
| _ ->
19321932
let underlyingTy = stripTyEqnsAndMeasureEqns g ty
19331933
if isStructTy g underlyingTy then
1934-
if isAppTy g underlyingTy && tyconRefEq g g.system_Nullable_tcref (tcrefOfAppTy g underlyingTy) then
1934+
if isNullableTy g underlyingTy then
19351935
return! ErrorD (ConstraintSolverError(FSComp.SR.csTypeParameterCannotBeNullable(), m, m))
19361936
else
19371937
return! ErrorD (ConstraintSolverError(FSComp.SR.csGenericConstructRequiresStructType(NicePrint.minimalStringOfType denv ty), m, m2))

0 commit comments

Comments
 (0)