Initial commit
Test (in pplus-core) / in-core (push) Failing after 28m44s

This commit is contained in:
alexm committed 2026-11-12 22:23:48 -05:00
commit 568474d52f
1591 files changed
+528213

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# probe: a whole-number literal assigned to a Float64 variable, field, List element or Dict entry or key, or handed to a Float64 field by @fieldwise_init: is it a Float64?
@fieldwise_init
struct P(Copyable, Movable):
var x: Float64
var n: Int
def main() raises:
var f: Float64 = 0.0
f = 1
var p = P(2, 3)
print(f, p.x, p.n)
p.x = 4
var l: List[Float64] = [0.5]
l[0] = 5
var d: Dict[String, Float64] = {}
d["a"] = 6
var k: Dict[Float64, Int] = {1: 7}
k[2] = 8
print(p.x, l, d["a"], k[1.0], k[2], len(k))
print(k)