Implicit conversion of round numbers to integers (#4542)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2024-11-25 10:50:43 +13:00
committed by GitHub
parent 66f6b741c4
commit 4fe17fe3ab
174 changed files with 1603 additions and 1518 deletions

View File

@ -1,5 +1,6 @@
---
source: kcl/src/simulation_tests.rs
assertion_line: 92
description: Program memory after executing if_else.kcl
snapshot_kind: text
---
@ -28,8 +29,8 @@ snapshot_kind: text
"__meta": []
},
"a": {
"type": "Int",
"value": 3,
"type": "Number",
"value": 3.0,
"__meta": [
{
"sourceRange": [
@ -41,8 +42,8 @@ snapshot_kind: text
]
},
"b": {
"type": "Int",
"value": 4,
"type": "Number",
"value": 4.0,
"__meta": [
{
"sourceRange": [
@ -54,8 +55,8 @@ snapshot_kind: text
]
},
"c": {
"type": "Int",
"value": 5,
"type": "Number",
"value": 5.0,
"__meta": [
{
"sourceRange": [