fmt: add a test for struct embed (#7831)

pull/7844/head
zakuro 2021-01-03 23:41:19 +09:00 committed by GitHub
parent 60b3658e6f
commit 91a1a2877b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -27,3 +27,10 @@ type Expr = IfExpr | IntegerLiteral
fn exprs(e []Expr) {
println(e.len)
}
struct KeepStructEmbed {
User
pub:
a int
b int
}