Skip to content

Fix Go type inference for 0.0 as FloatType#490

Open
Delaksan-Sritharan wants to merge 1 commit into
LDFLK:mainfrom
Delaksan-Sritharan:fix/go-type-inference-zero-float
Open

Fix Go type inference for 0.0 as FloatType#490
Delaksan-Sritharan wants to merge 1 commit into
LDFLK:mainfrom
Delaksan-Sritharan:fix/go-type-inference-zero-float

Conversation

@Delaksan-Sritharan

Copy link
Copy Markdown

Description

Summary

Fixes the Go type inference bug where the numeric literal 0.0 was being inferred as an integer instead of a float.

What changed

  • Updated the inference logic to preserve JSON numeric literals during conversion.
  • Ensured values such as 0.0 are classified as FloatType.
  • Added a regression test to cover the 0.0 case and prevent future regressions.

Why

This addresses issue #142: “0.0 is not being inferred as FloatType”.

Validation

  • Added regression coverage for numeric literal inference
  • Verified the relevant Go package tests pass successfully

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@CLAassistant

CLAassistant commented Jul 25, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants