瀏覽代碼

Enhance test for overlap and embedded

Tim Hockin 8 年之前
父節點
當前提交
9ec64591b6
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      output_tests/struct/anonymous/overlap/different_levels/types.go

+ 7 - 2
output_tests/struct/anonymous/overlap/different_levels/types.go

@@ -1,10 +1,15 @@
 package test
 
-type Embedded struct {
+type E1 struct {
 	F1 int32
 }
 
+type E2 struct {
+	F2 string
+}
+
 type T struct {
+	E1
+	E2
 	F1 string
-	Embedded
 }