Java to Kotlin converter: supported try-with-resource construct, fixed anonymous class generation + fixed a bug with method return type
#KT-4488 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//file
|
||||
import java.io.*;
|
||||
|
||||
public class C {
|
||||
void foo() {
|
||||
try(InputStream stream = new FileInputStream("foo")) {
|
||||
// reading something
|
||||
int c = stream.read();
|
||||
System.out.println(c);
|
||||
}
|
||||
catch (IOException e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user