You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Compiler/TypedTree/TypeProviders.fs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1122,7 +1122,7 @@ let ValidateExpectedName m expectedPath expectedName (st: Tainted<ProvidedType>)
1122
1122
#if NO_CHECKNULLS
1123
1123
letnamespaceName= TryTypeMember(st, name,"Namespace", m,"",fun st -> st.Namespace)|> unmarshal
1124
1124
#else
1125
-
letnamespaceName= TryTypeMember<_, string?>(st, name,"Namespace", m,"",fun st -> st.Namespace)|> unmarshal // TODO NULLNESS: why is this explicit instantiation needed?
1125
+
letnamespaceName= TryTypeMember<_, string__withnull>(st, name,"Namespace", m,"",fun st -> st.Namespace)|> unmarshal // TODO NULLNESS: why is this explicit instantiation needed?
1126
1126
#endif
1127
1127
1128
1128
let recdeclaringTypes(st:Tainted<ProvidedType>)accu =
@@ -1149,7 +1149,7 @@ let ValidateProvidedTypeAfterStaticInstantiation(m, st: Tainted<ProvidedType>, e
1149
1149
#if NO_CHECKNULLS
1150
1150
letnamespaceName= TryTypeMember(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1151
1151
#else
1152
-
letnamespaceName= TryTypeMember<_, string?>(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1152
+
letnamespaceName= TryTypeMember<_, string__withnull>(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1153
1153
#endif
1154
1154
letfullName= TryTypeMemberNonNull(st, name,"FullName", m, FSComp.SR.invalidFullNameForProvidedType(),fun st -> st.FullName)|> unmarshal
1155
1155
ValidateExpectedName m expectedPath expectedName st
@@ -1258,7 +1258,7 @@ let ValidateProvidedTypeDefinition(m, st: Tainted<ProvidedType>, expectedPath: s
1258
1258
#if NO_CHECKNULLS
1259
1259
let_namespaceName= TryTypeMember(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1260
1260
#else
1261
-
let_namespaceName= TryTypeMember<_,(string?)>(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1261
+
let_namespaceName= TryTypeMember<_, string__withnull>(st, name,"Namespace", m, FSComp.SR.invalidNamespaceForProvidedType(),fun st -> st.Namespace)|> unmarshal
1262
1262
#endif
1263
1263
let_fullname= TryTypeMemberNonNull(st, name,"FullName", m, FSComp.SR.invalidFullNameForProvidedType(),fun st -> st.FullName)|> unmarshal
1264
1264
ValidateExpectedName m expectedPath expectedName st
0 commit comments