SrSouza
03/25/2020, 3:16 PMdiesieben07
03/25/2020, 3:24 PMClass<C>, whatever C might be. The compiler cannot prove that e.g. NioServerSocketChannel will be a C, so it provides an error.diesieben07
03/25/2020, 3:25 PMClass<out ServerSocketChannel> as your return type.marstran
03/25/2020, 3:25 PMfun pickBestChannel(): Class<out ServerSocketChannel> {
// ...
}louiscad
03/25/2020, 3:46 PM