set RDONLY on objects added to the literal frame
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-26 19:50:57 +09:00
parent c9a96e02f7
commit e337e9d48b
6 changed files with 91 additions and 24 deletions

View File

@ -95,3 +95,13 @@ try { throw "1111"; } catch (e) {
fun a:get_999() { ##ERROR: exception not handled - "a accessed without initialization"
return 999;
}
---
k := (core.basicAt "abcdefg" 1)
core.basicAtPut "xbcdefghiklmnl" 4 k ##ERROR: exception not handled - "receiver immutable - \"xbcdefghiklmnl\""
---
k := (core.basicAt #abcdefg 1)
core.basicAtPut #xbcdefghiklmnl 4 k ##ERROR: exception not handled - "receiver immutable - #xbcdefghiklmnl"