mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
compiler: mark stringFromRunes as nocapture/readonly
This commit is contained in:
Vendored
+4
@@ -54,6 +54,10 @@ func main() {
|
||||
var buf [32]byte
|
||||
s := string(buf[:])
|
||||
println(len(s))
|
||||
|
||||
var rbuf [5]rune
|
||||
s = string(rbuf[:])
|
||||
println(s)
|
||||
}
|
||||
|
||||
func derefInt(x *int) int {
|
||||
|
||||
Reference in New Issue
Block a user