Skip to content

Commit ae9938f

Browse files
griesemergopherbot
authored andcommitted
doc: document new restriction on cgo-generated method receicer types
Follow-up on CL 629715. For #60725. Change-Id: I1b980ad44f73550b633c74fc881c70255e7d8565 Reviewed-on: https://go-review.googlesource.com/c/go/+/630335 Auto-Submit: Robert Griesemer <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> TryBot-Bypass: Robert Griesemer <[email protected]>
1 parent cf5ec07 commit ae9938f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/next/5-toolchain.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Compiler {#compiler}
22

3+
<!-- go.dev/issue/60725, go.dev/issue/57926 -->
4+
The compiler already disallowed defining new methods with receiver types that were
5+
cgo-generated, but it was possible to circumvent that restriction via an alias type.
6+
Go 1.24 now always reports an error if a receiver denotes a cgo-generated type,
7+
whether directly or indirectly (through an alias type).
8+
39
## Assembler {#assembler}
410

511
## Linker {#linker}

0 commit comments

Comments
 (0)