- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for switchBreak (0.21 sec)
-
test/inline.go
foo := func() int { // ERROR "can inline s1.func1" "func literal does not escape" return x } x = x + 1 return foo() // ERROR "inlining call to s1.func1" } func switchBreak(x, y int) int { // ERROR "can inline switchBreak" var n int switch x { case 0: n = 1 Done: switch y { case 0: n += 10 break Done } n = 2 } return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 11.7K bytes - Viewed (0) -
test/newinline.go
foo := func() int { // ERROR "can inline s1.func1" "func literal does not escape" return x } x = x + 1 return foo() // ERROR "inlining call to s1.func1" } func switchBreak(x, y int) int { // ERROR "can inline switchBreak" var n int switch x { case 0: n = 1 Done: switch y { case 0: n += 10 break Done } n = 2 } return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 11.2K bytes - Viewed (0)