Hi, thanks for the report!

A new version will be out soon that can report transformation errors at the source position, not a global error inside JavaScript writer. Still, can you find the offending part? It seems like a bug in F# tail recursion optimizer, that uses DoNotReturn to annotate a tail call position, so it is some tail recursive function.

By on 9/15/2017 4:57 AM ()

Yes, I just also found out that it has to do with recursion and continuation functions. Here is my minimum example:

1
2
3
4
5
6
7
8
9
namespace Test

open WebSharper

[<JavaScript>]
module Test =
    type N = A of N | B

    let rec f = function A x -> f x | B -> true
By on 9/15/2017 6:07 AM ()

Which package versions are you using? I'm not getting this error on any WebSharper.4.0-rc releases (the first of which is the same as latest Zafir-beta10.

By on 9/15/2017 7:44 AM ()

I was still on beta-9. Indeed works with beta-10. Sorry for bothering your.

By on 9/15/2017 8:52 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper