aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 09:33:46 +0000
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 09:33:46 +0000
commit04a92de49a40f4d3e58b39d3ad4549184afbeebc (patch)
treee37da74b5ccec23c6792a1c2eb230812ee42c307 /tests/typeerrors
parentMerge std library docs (diff)
parentconstants inside structs, and typo suggestions for fields and static members (diff)
Merge branch 'worktree-agent-a96a10dc1489688ea' into ccr-0054c02e-dfdvnd
Diffstat (limited to 'tests/typeerrors')
-rw-r--r--tests/typeerrors/field_typo.zc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/typeerrors/field_typo.zc b/tests/typeerrors/field_typo.zc
new file mode 100644
index 0000000..aa64209
--- /dev/null
+++ b/tests/typeerrors/field_typo.zc
@@ -0,0 +1,5 @@
+namespace;
+
+// expect: point has no field lenght; did you mean 'length'?
+struct point { int length, width; };
+fn main() { point* p; return p.lenght; }