Code:
import java.nio.channels.AsynchronousSocketChannel
val sock = AsynchronousSocketChannel.open()
Intellij identifies the type of 'sock' as AsynchronousSocketChannel!
(with the !).
However if I manually specify the type as :AsynchronousSocketChannel
the code also works (and Intellij no longer indicates the '!'), so the ! is only some annotation on the type. But what does this annotation signify? It would be great to know.