Baseline: tree as shared

This commit is contained in:
alexm committed 2026-10-05 03:03:38 +00:00
commit 659c03bbf8
1471 files changed
+990535

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# probe: overloaded functions picked by count and by type
# status: the expected output is Programming+'s interpreter's prediction; corpus.py verify confirms or refutes it on godbolt
# expect-stdout: an Int 3
# expect-stdout: a String hi
# expect-stdout: a pair 1,2
def describe(x: Int) -> String:
return "an Int " + String(x)
def describe(x: String) -> String:
return "a String " + x
def describe(x: Int, y: Int) -> String:
return "a pair " + String(x) + "," + String(y)
def main():
print(describe(3))
print(describe("hi"))
print(describe(1, 2))