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 cube.kcl
snapshot_kind: text
---
@ -58,7 +59,7 @@ snapshot_kind: text
"start": 47,
"type": "Literal",
"type": "Literal",
"value": 2
"value": 2.0
},
"start": 38,
"type": "BinaryExpression",
@ -100,7 +101,7 @@ snapshot_kind: text
"start": 62,
"type": "Literal",
"type": "Literal",
"value": 0
"value": 0.0
},
"start": 55,
"type": "MemberExpression",
@ -142,7 +143,7 @@ snapshot_kind: text
"start": 78,
"type": "Literal",
"type": "Literal",
"value": 1
"value": 1.0
},
"start": 71,
"type": "MemberExpression",