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
moduleProgram[<EntryPoint>]letmain _ =trytry
Config.Logger.configure()letconfig= ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).Build()
WebHostBuilder().UseConfiguration(config).UseKestrel().UseSerilog()
.ConfigureAppConfiguration
(Action<WebHostBuilderContext, IConfigurationBuilder> configureAppConfiguration)// ^-- this appears to be what is causing the code to be invalid
.ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices)
.Configure(Action<IApplicationBuilder> configureApp).Build().Run()|> ignore
0with ex ->
Log.Fatal(ex,"Service terminated unexpectedly")1finally
Log.CloseAndFlush()
Description
A long method call being broken up over multiple lines produces invalid F# code.
The level of indentation combined with the long method call appears to be what causes the wrapping in the first place.
This appears to be similar to/the same as #246 and #379.
Repro code
Input
Output
Repro Link
The text was updated successfully, but these errors were encountered: