mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
15 lines
117 B
Go
15 lines
117 B
Go
package main
|
|
|
|
type T struct {
|
|
bool
|
|
}
|
|
|
|
var t = T{true}
|
|
|
|
func main() {
|
|
println(t.bool && true)
|
|
}
|
|
|
|
// Output:
|
|
// true
|