Detect unused variables

This commit is contained in:
nora 2024-05-13 20:02:08 +02:00
parent f164aad631
commit 9270f52e6b
33 changed files with 340 additions and 63 deletions

View file

@ -10,3 +10,11 @@ error: cannot assign String to Int
--> $DIR/basic_recovery.nil:3
3 | let b: Int = "";
^
warning: unused variable: `a`
--> $DIR/basic_recovery.nil:2
2 | let a: Int = "";
^
warning: unused variable: `b`
--> $DIR/basic_recovery.nil:3
3 | let b: Int = "";
^