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
namespace Website
module CollTest =
open IntelliFactory.WebSharper
open IntelliFactory.WebSharper.Html
open System.Collections.Generic
[<JavaScript>]
let private DictPart () =
// Calling constructors won't include ...Collections.dll.js.
let d = new Dictionary<string,string>()
// Calling module methods (static methods) won't.
let m = [("Aka", "Pizza")] |> Map.ofSeq
// Calling any instance methods will cause the inclusion of ...Collections.dll.js.
// Uncomment to make it work.
// let m = m.Add ("Rosie", "Bagels")
// Another module method.
let result = m |> Map.toSeq |> Seq.map (fun (k,v) -> k + " -> " + v)
Div [
result
|> Seq.map (fun x -> LI [Text x])
|> OL
]
type CollTestControl () =
inherit Web.Control ()
[<JavaScript>]
override this.Body = DictPart () :> IPagelet
Thank you very much for reporting this bug. It did not affect all constructors/static methods, only the proxy ones, but still of course is a critical issue. I just committed a fix, we will try to release an installer update shortly.
The text was updated successfully, but these errors were encountered: