Skip to content

Commit 3f97dc0

Browse files
fixed: no FSharpSymbolUse for single case union type #301
1 parent 6db431a commit 3f97dc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fsharp/tc.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13961,6 +13961,7 @@ module EstablishTypeDefinitionCores = begin
1396113961
noAllowNullLiteralAttributeCheck()
1396213962
TcRecdUnionAndEnumDeclarations.CheckUnionCaseName cenv unionCaseName.idText unionCaseName.idRange
1396313963
let unionCase = NewUnionCase unionCaseName unionCaseName.idText [] thisTy [] XmlDoc.Empty tycon.Accessibility
13964+
writeFakeUnionCtorsToSink [ unionCase ]
1396413965
MakeUnionRepr [ unionCase ], None, NoSafeInitInfo
1396513966

1396613967
| SynTypeDefnSimpleRepr.TypeAbbrev(ParserDetail.ThereWereSignificantParseErrorsSoDoNotTypecheckThisNode, _rhsType,_) ->

0 commit comments

Comments
 (0)