mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
compiler: implement type assert without comma-ok
This commit is contained in:
@@ -69,6 +69,8 @@ func main() {
|
||||
printItf(Number(3))
|
||||
s := Stringer(thing)
|
||||
println("Stringer.String():", s.String())
|
||||
var itf interface{} = s
|
||||
println("Stringer.(*Thing).String():", itf.(Stringer).String())
|
||||
|
||||
// unusual calls
|
||||
runFunc(hello, 5) // must be indirect to avoid obvious inlining
|
||||
|
||||
Reference in New Issue
Block a user