Support new form of definitely non-nullable types: T & Any
^KT-26245 In Progress
This commit is contained in:
committed by
teamcityserver
parent
cdd8d1c163
commit
302eacbf59
+6
@@ -799,6 +799,12 @@ public abstract class KtUsefulTestCase extends TestCase {
|
||||
fileText = FileUtil.loadFile(new File(filePath), StandardCharsets.UTF_8);
|
||||
}
|
||||
catch (FileNotFoundException e) {
|
||||
try {
|
||||
FileUtil.writeToFile(new File(filePath), actualText);
|
||||
}
|
||||
catch (IOException exception) {
|
||||
throw new AssertionError(exception);
|
||||
}
|
||||
throw new AssertionFailedError("No output text found. File " + filePath + " created.");
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user