Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
548 stars 44 forks source link

Fix NumberFormatException when translating numeric literals #488

Closed mysticfall closed 2 years ago

mysticfall commented 2 years ago

Summary

This PR fixes a problem with converting numeric literals with a decimal point (e.g. "1.5").

With the current master, converting API wrappers for Babylon.js fails due to a NumberFormatException caused by trying to parse lines such as below:

static readonly _DefaultIndexOfRefraction = 1.5;

Related Issue

487