Skip to content

E0114: Unreachable case ​

Cases are tried in order, and the earlier ones already match everything this one does, so it never runs.

Wrong ​

vuka
match o {
case _:
	return 0
case Some(x):
	return x
}
vuka
match o {
case Some(x):
	return x
case _:
	return 0
}

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.