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:
Ayke van Laethem
2021-10-24 20:58:03 +02:00
committed by Ron Evans
parent a4afc3b4b0
commit 9e1b4de999
6 changed files with 115 additions and 4 deletions
+8
View File
@@ -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")
}