| 1 | test/err/VarGivenAddress.raz:10:7: error: a var parameter takes B, found its address |
| 2 | 10 | f(SYSTEM.ADR(b)); |
| 3 | | ^^^^^^^^^^^^^ |
| 4 | help: write b for SYSTEM.ADR(b): the parameter is the variable itself, not its address |
| 5 | test/err/VarGivenAddress.raz:11:7: error: a var parameter takes B, found its address |
| 6 | 11 | f(p); |
| 7 | | ^ |
| 8 | help: write p^ for p: the parameter is the variable itself, not a pointer to it |
| 9 | test/err/VarGivenAddress.raz:12:12: error: a const parameter takes B, found its address |
| 10 | 12 | _ := g(SYSTEM.ADR(b)); |
| 11 | | ^^^^^^^^^^^^^ |
| 12 | help: write b for SYSTEM.ADR(b): the parameter is the variable itself, not its address |
| 13 | raz: 3 errors |