mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-16 09:25:03 +01:00
Detect unused variables
This commit is contained in:
parent
f164aad631
commit
9270f52e6b
33 changed files with 340 additions and 63 deletions
|
|
@ -5,14 +5,14 @@ function main() = (
|
|||
singleArg("hi!");
|
||||
manyArgs(1,2,3,4,5,6);
|
||||
|
||||
let a: () = returnNothing();
|
||||
let b: () = returnExplicitUnit();
|
||||
let c: String = returnString();
|
||||
let _a: () = returnNothing();
|
||||
let _b: () = returnExplicitUnit();
|
||||
let _c: String = returnString();
|
||||
);
|
||||
|
||||
function noArgs() =;
|
||||
function singleArg(a: String) =;
|
||||
function manyArgs(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) =;
|
||||
function singleArg(_a: String) =;
|
||||
function manyArgs(_a: Int, _b: Int, _c: Int, _d: Int, _e: Int, _f: Int) =;
|
||||
|
||||
function returnNothing() =;
|
||||
function returnExplicitUnit(): () =;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue