- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for mdoesnotescape (0.08 sec)
-
test/escape_iface.go
// Test escape analysis for interface conversions. package escape var sink interface{} type M interface { M() } func mescapes(m M) { // ERROR "leaking param: m" sink = m } func mdoesnotescape(m M) { // ERROR "m does not escape" } // Tests for type stored directly in iface and with value receiver method. type M0 struct { p *int } func (M0) M() { } func efaceEscape0() { {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 17:16:35 UTC 2023 - 4.5K bytes - Viewed (0)