Unreachable code
Reports code that can never be executed because there exists no control flow path to the code from the rest of the program.
Example:
func _() int {
print(1)
return 2
println() // This code is unreachable
return 0
}
Inspection Details | |
---|---|
Available in: | GoLand 2023.3 |
Plugin: | Go, 233.SNAPSHOT |
Last modified: 13 July 2023