diff --git a/src/sitelets/WebSharper.Sitelets/RouterInfer.Client.fs b/src/sitelets/WebSharper.Sitelets/RouterInfer.Client.fs index 13365f113..a8116485b 100644 --- a/src/sitelets/WebSharper.Sitelets/RouterInfer.Client.fs +++ b/src/sitelets/WebSharper.Sitelets/RouterInfer.Client.fs @@ -344,6 +344,8 @@ type RoutingMacro() = failwithf "Failed to create Router for type %O, F# union case types are not supported yet" t | M.DelegateInfo _ -> failwithf "Failed to create Router for type %O, delegate types are not supported" t + | M.FSharpAnonRecordInfo _ -> + failwith "Failed to create Router, anonymous F# record types are not supported" | M.StructInfo | M.NotCustomType -> if not allJSClassesInitialized then diff --git a/tests/Web/Web.config b/tests/Web/Web.config index df06ded1d..b27d82619 100644 --- a/tests/Web/Web.config +++ b/tests/Web/Web.config @@ -25,7 +25,7 @@ - +