diff --git a/doc/next/5-toolchain.md b/doc/next/5-toolchain.md index 04403eb550..05916531a1 100644 --- a/doc/next/5-toolchain.md +++ b/doc/next/5-toolchain.md @@ -1,5 +1,11 @@ ## Compiler {#compiler} + +The compiler already disallowed defining new methods with receiver types that were +cgo-generated, but it was possible to circumvent that restriction via an alias type. +Go 1.24 now always reports an error if a receiver denotes a cgo-generated type, +whether directly or indirectly (through an alias type). + ## Assembler {#assembler} ## Linker {#linker}