mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
interp: fix reading from external global
This fixes https://github.com/tinygo-org/tinygo/issues/3020.
This commit is contained in:
committed by
Ron Evans
parent
5f96d2b784
commit
9e4e182615
Vendored
+3
@@ -20,9 +20,12 @@ var (
|
||||
//go:embed a/b/.hidden
|
||||
var hidden string
|
||||
|
||||
var helloStringBytes = []byte(helloString)
|
||||
|
||||
func main() {
|
||||
println("string:", strings.TrimSpace(helloString))
|
||||
println("bytes:", strings.TrimSpace(string(helloBytes)))
|
||||
println("[]byte(string):", strings.TrimSpace(string(helloStringBytes)))
|
||||
println("files:")
|
||||
readFiles(".")
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
string: hello world!
|
||||
bytes: hello world!
|
||||
[]byte(string): hello world!
|
||||
files:
|
||||
- a
|
||||
- a/b
|
||||
|
||||
Reference in New Issue
Block a user