fmt: add a test for struct embed (#7831)
parent
60b3658e6f
commit
91a1a2877b
|
@ -27,3 +27,10 @@ type Expr = IfExpr | IntegerLiteral
|
||||||
fn exprs(e []Expr) {
|
fn exprs(e []Expr) {
|
||||||
println(e.len)
|
println(e.len)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct KeepStructEmbed {
|
||||||
|
User
|
||||||
|
pub:
|
||||||
|
a int
|
||||||
|
b int
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue