mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
Set internal linkage and keeping default visibility for anonymous functions
This commit is contained in:
Vendored
+8
@@ -1,11 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/tinygo-org/tinygo/testdata/generics/testa"
|
||||
"github.com/tinygo-org/tinygo/testdata/generics/testb"
|
||||
)
|
||||
|
||||
func main() {
|
||||
println("add:", Add(3, 5))
|
||||
println("add:", Add(int8(3), 5))
|
||||
|
||||
var c C[int]
|
||||
c.F() // issue 2951
|
||||
|
||||
testa.Test()
|
||||
testb.Test()
|
||||
}
|
||||
|
||||
type Integer interface {
|
||||
|
||||
Reference in New Issue
Block a user