Type inference runtime error

Henry <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <[email protected]>
Hi

In the example of the documentation
https://groovy-lang.org/semantics.html#type-inference the callout number
3 states 'calling |upper| will fail at compile time'. But when I run
those three lines of code in GroovyConsole I get
groovy.lang.MissingMethodException which is a runtime exception.

So shouldn't it say '... will fail at runtime'?

Thanks.

Henry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.