Skip to content

Commit 7f95b99

Browse files
committed
ambivalence shouldn't be taken into account
1 parent a8f7051 commit 7f95b99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/FsAutoComplete.Core/SignatureFormatter.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ module SignatureFormatter =
4343
let rec formatFSharpType (context: FSharpDisplayContext) (typ: FSharpType) : string =
4444
let context = context.WithPrefixGenericParameters()
4545

46-
let nullabilityClause =
47-
if typ.HasNullAnnotation || typ.IsNullAmbivalent then
48-
" | null"
49-
else
50-
""
46+
let nullabilityClause = if typ.HasNullAnnotation then " | null" else ""
5147

5248
try
5349
if typ.IsTupleType || typ.IsStructTupleType then

0 commit comments

Comments
 (0)