nikhilk/scriptsharp — Issue #120: Enum named constants complied with strange name
Author: noamberda
Created: 2011-11-04 15:34:34+00:00
State: open

Hi,
I am using GMapSharp and in the project they have number of enums.
one of the enum is GeocoderStatus. it has a named constant called:
///

/// No result was found for this GeocoderRequest.
///

ZERO_RESULTS,

I am using it in the following way
if (GeocoderStatus.ZERO_RESULTS == status)

and somehow it complied the following way
if (google.maps.GeocoderStatus.zerO_RESULTS === status) {

so we have a problem as the javascript doesn't recognize this var.
if I change in the javascript to capital letters then its working fine.

Noam