Files
kotlin/compiler/testData/codegen/notNullAssertions/doGenerateParamAssertions.java
Alexander Udalov 9df3c22097 Kill blackBoxFile()
If your test is supposed to use blackBoxFile(), maybe it should be placed into
box/boxWithStdlib directory
2013-02-11 02:01:41 +04:00

18 lines
422 B
Java

package test;
import org.jetbrains.annotations.NotNull;
public abstract class doGenerateParamAssertions {
public abstract void bar(@NotNull String s);
public static void foo(doGenerateParamAssertions a) {
try {
a.bar(null);
} catch (IllegalArgumentException e) {
return;
}
throw new AssertionError("Fail: IllegalArgumentException expected");
}
}