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

Allow name collision on interfaces with Stub #1395

Closed Jooseppi12 closed 6 months ago

Jooseppi12 commented 7 months ago

Consider the following interface:

type MyType =
    abstract MyFunc : string -> string
    abstract MyFunc : string seq -> string

The resulting JS should not rename MyFunc to MyFunc_1 to avoid name collision, as we are using this for interop purposes

Jand42 commented 7 months ago

Modified ticket name: implementing this change for all Stubs, using the stubInterfaces=true setting is just a special case