mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Prohibit "this.etc = etc" inside pure functions
This commit is contained in:
1 parent
d552f88738
commit
84f9d3a915
2 files changed
+23
-5
No files matched your search
@@ -53,8 +53,6 @@ pub func hasher.update!(x slice base.u8) base.u32 {
|
||||
args.x = remaining
|
||||
}
|
||||
|
||||
// TODO: check that you can't assign to this.foo unless the method's effect
|
||||
// is "!" impure or "?" impure coroutine.
|
||||
this.state = ((s2 & 0xFFFF) << 16) | (s1 & 0xFFFF)
|
||||
return this.state
|
||||
}
|
||||
Reference in new issue
Block a user