---
source: crates/rascal/src/program.rs
expression: parsed
input_file: samples/as2_errors/special_functions/startdrag.as
---
error: Compile error
╭▸ startdrag.as:1:1
│
1 │ startDrag();
│ ━━━━━━━━━━━ Wrong number of parameters; startDrag requires between 1 and 6.
2 │ startDrag(x, "maybe");
│ ━━━━━━━ Lock center parameter must be true or false
3 │ startDrag(x, "true");
│ ━━━━━━ Lock center parameter must be true or false
4 │ startDrag(x, true, 1);
│ ━━━━━━━━━━━━━━━━━━━━━ startDrag requires 1 (target), 2 (target+lock) or 6 (target+lock+constraint) parameters.
5 │ startDrag(x, true, 1, 2);
│ ━━━━━━━━━━━━━━━━━━━━━━━━ startDrag requires 1 (target), 2 (target+lock) or 6 (target+lock+constraint) parameters.
6 │ startDrag(x, true, 1, 2, 3);
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ startDrag requires 1 (target), 2 (target+lock) or 6 (target+lock+constraint) parameters.
7 │ startDrag(x, true, 1, 2, 3, 4, 5);
╰╴━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Wrong number of parameters; startDrag requires between 1 and 6.