diff options
| author | 2026-10-14 09:33:46 +0000 | |
|---|---|---|
| committer | 2026-10-14 09:33:46 +0000 | |
| commit | 04a92de49a40f4d3e58b39d3ad4549184afbeebc (patch) | |
| tree | e37da74b5ccec23c6792a1c2eb230812ee42c307 /tests/errors/static_typo.zc | |
| parent | Merge std library docs (diff) | |
| parent | constants inside structs, and typo suggestions for fields and static members (diff) | |
Merge branch 'worktree-agent-a96a10dc1489688ea' into ccr-0054c02e-dfdvnd
Diffstat (limited to 'tests/errors/static_typo.zc')
| -rw-r--r-- | tests/errors/static_typo.zc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/errors/static_typo.zc b/tests/errors/static_typo.zc new file mode 100644 index 0000000..97f6513 --- /dev/null +++ b/tests/errors/static_typo.zc @@ -0,0 +1,5 @@ +namespace; + +// expect: itao: is not a static function of this struct; did you mean 'itoa'? +struct Text { int len; static int itoa(int n) { return n; } }; +fn main() { return Text.itao(1); } |
