Ignore @Nullable annotation for vararg parameter

See the comment in code for clarification

 #KT-19786 Fixed
This commit is contained in:
Denis Zharkov
2018-02-08 12:47:33 +03:00
parent cfd612e2c1
commit 88a23c73c7
15 changed files with 273 additions and 1 deletions
@@ -0,0 +1,22 @@
// FILE: BaseClass.java
import org.jetbrains.annotations.Nullable;
public class BaseClass {
public void loadCache(@Nullable Object... args) {}
}
// FILE: main.kt
class A : BaseClass() {
// org.jetbrains.annotations.Nullable has @Target PARAMETER, so it doesn't affect elements type
override fun loadCache(vararg args: Any?) {
super.loadCache(*args)
}
}
class B : BaseClass() {
// org.jetbrains.annotations.Nullable has @Target PARAMETER, so it doesn't affect elements type
override fun loadCache(vararg args: Any) {
super.loadCache(*args)
}
}