build: separate compiler and libs

This commit is contained in:
Li Jie
2025-01-07 21:49:08 +08:00
parent b0123567cd
commit 1172e5bdce
559 changed files with 190 additions and 176 deletions

View File

@@ -1,27 +0,0 @@
package main
import (
"github.com/goplus/llgo/cl/internal/foo"
)
type Game1 struct {
*foo.Game
}
type Game2 struct {
}
func (p *Game2) initGame() {
}
func main() {
var g1 any = &Game1{&foo.Game{}}
var g2 any = &Game2{}
v1, ok := g1.(foo.Gamer)
println("OK", v1, ok)
if ok {
v1.Load()
}
v2, ok := g2.(foo.Gamer)
println("FAIL", v2, ok)
}