raz / test / msg / PtrLiteral.err

5 lines · 267 B · raw · history · last change 264716cb

1conform/err/PtrLiteral.raz:6:21: error: PTR can't take an array literal, which has no type here
2 6 | p := SYSTEM.PTR([]);
3 | ^
4help: PTR([]) would be nil, the empty slice's pointer; give any other literal a variable first
5raz: 1 error