Skip to the page
Results for “E0200”
6 results, best first
-
error codeError codes
E0200: mismatched types
A value of one type was used where another type is expected. Auk has no implicit conversions (not even int to float), so every conversion is visible in the code: float(n), int(x), str(v).
-
definitionReference › Glossary
error code
Every compiler message has a code such as E0200. auk explain E0200 prints a page about it with the mistake and the fix, and every code has a page here too. More: Error codes.
-
Start here › Getting started
When the compiler says no
…exists, a fix: $ auk check oops.auk oops.auk:2:16: error[E0200]: expected `int`, found `str` | 2 | let x: int = "hi" | ^^^^ = help: run `auk explain E0200` for details auk explain E0200 prints a page…
-
Tools › The auk command
auk check
…tools: {"file":"a.auk","ok":false,"diagnostics":[{"code":"E0200","severity":"error", "line":11,"col":16,"end_line":11,"end_col":20, "message":"expected `int`, found `str`","notes":[],"fixes":[],…
-
error codeError codes › E0200: mismatched types
Wrong
fn label(n: int): str = n
-
error codeError codes › E0200: mismatched types
Fixed
fn label(n: int): str = str(n)