From 0d39dba6dea120f677a55be83d760acb89a7195d Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
+ The vet tool now warns about type assertions from one interface type + to another interface type when the type assertion will always fail. + This will happen if both interface types implement a method with the + same name but with a different type signature. +
+ ++ There is no reason to write a type assertion that always fails, so + any code that triggers this vet check should be rewritten. +
+ +
+ This new vet check is enabled by default when using go test
.
+
+ We are considering prohibiting impossible interface type assertions + in a future release of Go. + Such a language change would not be backward compatible. + We are using this vet check as a first trial step toward changing + the language. +
+-- 2.50.0