dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
595 stars 50 forks source link

Incorrect JS translation in case of invalid characters in name #1393

Closed Jooseppi12 closed 6 months ago

Jooseppi12 commented 7 months ago

Given the following code:

type type' =
    static member myFunction'<'t>(x: 't) = Console.Log x; x

When the above function would be called, the generated js would have an import statement like this:

import { myFunction' as myFunction_ } from "./usedproxy.What.type'.js"

Which yields an error: unterminated string literal