mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
compiler: add support for the go keyword on interface methods
This is a feature that was long missing, but because of the previous refactor, it is now trivial to implement.
This commit is contained in:
committed by
Ron Evans
parent
a4afc3b4b0
commit
9e1b4de999
Vendored
+8
@@ -41,3 +41,11 @@ func closeBuiltinGoroutine(ch chan int) {
|
||||
}
|
||||
|
||||
func regularFunction(x int)
|
||||
|
||||
type simpleInterface interface {
|
||||
Print(string)
|
||||
}
|
||||
|
||||
func startInterfaceMethod(itf simpleInterface) {
|
||||
go itf.Print("test")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user