[Tests] Add tests for KT-40180

^KT-40180 Fixed
This commit is contained in:
Vladimir Sukharev
2024-03-05 10:35:12 +01:00
committed by Space Team
parent eec14f0054
commit 848cca03c0
14 changed files with 299 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// FILE: Base.java
public class Base {
// Parameter considered as nullable by FO builder
public void foo(String s) {}
}
// FILE: Derived.kt
class Derived : Base() {
// Parameter is not null
override fun foo(s: String) {}
}
fun box(): String {
Derived().foo("")
return "OK"
}