drop bits of code to support Go 1.19

This commit is contained in:
Daniel Martí
2023-02-12 21:35:01 +00:00
parent b322876efe
commit 658060851d
4 changed files with 6 additions and 37 deletions

View File

@@ -28,8 +28,7 @@ cp stderr build-error.stderr
stdin build-error.stderr
garble reverse ./build-error
[!go1.20] cmp stdout build-error-reverse.stdout-go1.19
[go1.20] cmp stdout build-error-reverse.stdout-go1.20
cmp stdout build-error-reverse.stdout
[short] stop # no need to verify this with -short
@@ -157,12 +156,7 @@ main.main(...)
test/main/long_main.go:11 +0x??
main filename: test/main/long_main.go
-- build-error-reverse.stdout-go1.19 --
# test/main/build-error
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
exit status 2
exit status 2
-- build-error-reverse.stdout-go1.20 --
-- build-error-reverse.stdout --
# test/main/build-error
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
exit status 2