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
letx=not(isObjTy g ty)&& isAppTy g ty
&& isObjTy g minfo.ApparentEnclosingType
&&lettcref= tcrefOfAppTy g ty inmatch tcref.TypeReprInfo with| TProvidedTypeExtensionPoint info ->
info.ProvidedType.PUntaint
((fun st ->(st :> IProvidedCustomAttributeProvider)
.GetHasTypeProviderEditorHideMethodsAttribute(info.ProvidedType.TypeProvider.PUntaintNoFailure
(id))),
m)|_->if tcref.IsILTycon then
tcref.ILTyconRawMetadata.CustomAttrs.AsArray
|> Array.exists (fun attr ->
attr.Method.DeclaringType.TypeSpec.Name = typeof<TypeProviderEditorHideMethodsAttribute>.FullName)elsefalse
Error
Fantomas was able to format the code but the result appears to be invalid F# code.
Please openan issue.
Formatted result:letx=not(isObjTy g ty)&& isAppTy g ty
&& isObjTy g minfo.ApparentEnclosingType
&&lettcref= tcrefOfAppTy g ty
match tcref.TypeReprInfo with| TProvidedTypeExtensionPoint info ->
info.ProvidedType.PUntaint
((fun st ->(st :> IProvidedCustomAttributeProvider)
.GetHasTypeProviderEditorHideMethodsAttribute(info.ProvidedType.TypeProvider.PUntaintNoFailure
(id))),
m)|_->if tcref.IsILTycon then
tcref.ILTyconRawMetadata.CustomAttrs.AsArray
|> Array.exists (fun attr ->
attr.Method.DeclaringType.TypeSpec.Name = typeof<TypeProviderEditorHideMethodsAttribute>.FullName)elsefalse
Problem description
The in keyword is required in order for the expression to be valid.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
* WIP preserve in keyword.
* Preserve in keyword. Fixes#340.
* Add regression test for #1114.
* Format LetBindingTests.fs
* Add regression test for #1032.
Issue created from fantomas-online
Code
Error
Problem description
The
in
keyword is required in order for the expression to be valid.Extra information
Options
Fantomas Master at 09/05/2020 10:04:29 - 9fed8b8
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: