diff options
Diffstat (limited to 'src/internal/types')
-rw-r--r-- | src/internal/types/testdata/check/expr3.go | 2 | ||||
-rw-r--r-- | src/internal/types/testdata/fixedbugs/issue39634.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/types/testdata/check/expr3.go b/src/internal/types/testdata/check/expr3.go index da8d54fd1d..91534cdd62 100644 --- a/src/internal/types/testdata/check/expr3.go +++ b/src/internal/types/testdata/check/expr3.go @@ -505,7 +505,7 @@ func _calls() { f2(3.14) /* ERROR "not enough arguments in call to f2\n\thave (number)\n\twant (float32, string)" */ f2(3.14, "foo") f2(x /* ERRORx `cannot use .* in argument` */ , "foo") - f2(g0 /* ERROR "used as value" */ ()) + f2(g0 /* ERROR "used as value" */ ()) /* ERROR "not enough arguments in call to f2\n\thave (func())\n\twant (float32, string)" */ f2(g1()) /* ERROR "not enough arguments in call to f2\n\thave (int)\n\twant (float32, string)" */ f2(g2()) diff --git a/src/internal/types/testdata/fixedbugs/issue39634.go b/src/internal/types/testdata/fixedbugs/issue39634.go index 592496033b..591b00e404 100644 --- a/src/internal/types/testdata/fixedbugs/issue39634.go +++ b/src/internal/types/testdata/fixedbugs/issue39634.go @@ -66,7 +66,7 @@ type Z19 [][[]Z19{}[0][0]]c19 /* ERROR "undefined" */ // crash 20 type Z20 /* ERROR "invalid recursive type" */ interface{ Z20 } -func F20[t Z20]() { F20(t /* ERROR "invalid composite literal type" */ {}) } +func F20[t Z20]() { F20(t /* ERROR "invalid composite literal type" */ /* ERROR "too many arguments in call to F20\n\thave (unknown type)\n\twant ()" */ {}) } // crash 21 type Z21 /* ERROR "invalid recursive type" */ interface{ Z21 } |