Avatar
Avatar
omochimetaru
func foo(a: Int) { // ERROR: Cannot pass immutable value as inout argument: 'a' is a 'let' constant take(&a) } func take(_ x: inout Int) {}
omochimetaru 2/6/2025 12:35 AM
でもこっちはimplicit copyable consumingだと思うけどlet扱いっすよね
t_naruhodo 1
12:37 AM
明示的consumingはlvalueだけど暗黙のconsumingはrvalueっぽいんだよな