dotnet-websharper / google.maps

WebSharper bindings to Google Maps API
Apache License 2.0
4 stars 3 forks source link

MapTypes.fs Interface Generator Bug #1

Closed halfAbee closed 6 years ago

halfAbee commented 9 years ago

Hi,

I've been trying to use google maps' style types, and I believe you have an unwanted line in MapTypes.fs at line 26:

  24: let MapTypeStyler =
  25: Config "MapTypeStyler"
  26: |+> Static [Constructor T]

If you comment out line 26 and rebuild, clients can use the MapTypeStyler type, otherwise there is a compiler error because of the extra constructor definition.

Here is some code that currently fails to compile (fixed above):

    [<JavaScript>]
    module GoogleMaps =
        open WebSharper.JavaScript
        open WebSharper.Google.Maps

        let mts = new MapTypeStyler()
Jand42 commented 6 years ago

Fixed in commit 27f077d8084222d895ed49f7a0fdcc2d4633bb9e