We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The compiler (or, IDE) displays a type conversion error but continues compilation and execution.
go: https://go.dev/play/p/-1gby11D6fv gno: https://play.gno.land/p/J-sLKDi24K-
type Reader interface { Read() string } type StringReader interface { Reader ReadString() string } func main() { var t interface{} var sr StringReader t = sr var r = Reader(t) // <- in here, IDE shows the error println(r) } // Output: // (undefined)
Current Behaviour
Expected Behaviour
cannot convert t (variable of type interface{}) to type Reader: interface{} does not implement Reader (missing method Read)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The compiler (or, IDE) displays a type conversion error but continues compilation and execution.
go: https://go.dev/play/p/-1gby11D6fv
gno: https://play.gno.land/p/J-sLKDi24K-
Minimal Reproduction Code
Current Behaviour
Expected Behaviour
The text was updated successfully, but these errors were encountered: