aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors
diff options
context:
space:
mode:
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; }