Skip to content
Merged
Prev Previous commit
Next Next commit
Refactor
  • Loading branch information
kerams committed Jun 25, 2026
commit 061c5f8e91908030f1ad7ddabe54e27868ccd93b
6 changes: 2 additions & 4 deletions src/Compiler/Checking/Expressions/CheckExpressions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10599,12 +10599,10 @@ and TcMethodApplication
| Some callerArgTy ->
let retTy = baseMinfo.GetFSharpReturnType(cenv.amap, mMethExpr, callerTyArgs)
let argNullness =
if TypeNullIsTrueValue g callerArgTy then
if TypeNullIsTrueValue g callerArgTy || TypeNullIsExtraValueNew g mMethExpr callerArgTy then
g.knownWithNull
else
match GetTyparTyIfSupportsNull g callerArgTy with
| ValueSome _ -> g.knownWithNull
| ValueNone -> nullnessOfTy g callerArgTy
nullnessOfTy g callerArgTy
MethInfoWithModifiedReturnType(baseMinfo, replaceNullnessOfTy argNullness retTy)
| None -> baseMinfo
Comment thread
T-Gro marked this conversation as resolved.
Resolved
| _ -> baseMinfo
Expand Down
Loading