func _() int {
print(1)
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
L:
print(1)
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
print(1)
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
{
print(1)
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
{
print(1)
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
print(1)
{
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
print(1)
return 2
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
print(1)
goto L
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
{
panic(2)
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
func _() int {
func _() int {
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
func _() int {
L:
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
func _() int {
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
func _() int {
{
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
L:
{
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
func _() int {
{
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
{
return 2
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
{
goto L
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
{
panic(2)
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
var _ = func() int {
print(1)
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
L:
print(1)
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
print(1)
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
{
print(1)
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
{
print(1)
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
print(1)
{
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
}
print(1)
return 2
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
print(1)
goto L
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
{
panic(2)
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
var _ = func() int {
var _ = func() int {
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
var _ = func() int {
L:
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
var _ = func() int {
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
var _ = func() int {
{
return 2
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
L:
{
goto L
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
var _ = func() int {
{
panic(2)
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
}
println() // ok
}
{
return 2
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
{
goto L
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}
{
panic(2)
}
- {
- } // ERROR "unreachable code"
+ { // ERROR "unreachable code"
+ }
println() // ok
}