summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug183.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug183.go')
-rw-r--r--test/fixedbugs/bug183.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fixedbugs/bug183.go b/test/fixedbugs/bug183.go
index 47f8bfe74..7fd6e4942 100644
--- a/test/fixedbugs/bug183.go
+++ b/test/fixedbugs/bug183.go
@@ -11,7 +11,8 @@ type T int
func f() {
var x struct { T };
var y struct { T T };
- x = y // ERROR "cannot|incompatible"
+ x = y; // ERROR "cannot|incompatible"
+ _ = x;
}
type T1 struct { T }
@@ -20,6 +21,7 @@ type T2 struct { T T }
func g() {
var x T1;
var y T2;
- x = y // ERROR "cannot|incompatible"
+ x = y; // ERROR "cannot|incompatible"
+ _ = x;
}