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,12 @@
|
||||
//file
|
||||
import java.io.*;
|
||||
|
||||
public class C {
|
||||
void foo() throws IOException {
|
||||
try(InputStream input = new FileInputStream("foo");
|
||||
OutputStream output = new FileOutputStream("bar")) {
|
||||
output.write(input.read());
|
||||
output.write(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user