diff options
Diffstat (limited to 'tests/typeerrors')
| -rw-r--r-- | tests/typeerrors/field_typo.zc | 5 |
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; } |
