Generate not-null assertions on extension receiver parameters

This commit is contained in:
Alexander Udalov
2015-02-02 15:53:04 +03:00
parent 39c9216edc
commit 5c2d0c6173
6 changed files with 83 additions and 15 deletions
@@ -0,0 +1,17 @@
public class Test {
public static String invokeFoo() {
try {
_DefaultPackage.foo(null);
}
catch (IllegalArgumentException e) {
try {
_DefaultPackage.getBar(null);
}
catch (IllegalArgumentException f) {
return "OK";
}
}
return "Fail: assertion must have been fired";
}
}