mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
[LC] Fix invalid nullability for properties
Fixed #KT-46097 and #KT-41671
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
class TestConstructor private constructor(p: Int = 1)
|
||||
class A(vararg a: Int, f: () -> Unit) {}
|
||||
|
||||
@@ -15,3 +14,7 @@ class Outer {
|
||||
sealed class A(val x: String? = null) {
|
||||
class C : A()
|
||||
}
|
||||
|
||||
class ClassWithPrivateCtor private constructor(
|
||||
public val property: Set<Int>
|
||||
)
|
||||
@@ -101,3 +101,9 @@ interface A {
|
||||
public get
|
||||
internal set
|
||||
}
|
||||
|
||||
class Foo {
|
||||
val foo get() = getMeNonNullFoo()
|
||||
val foo2: Foo get() = getMeNonNullFoo()
|
||||
fun getMeNonNullFoo() : Foo = Foo()
|
||||
}
|
||||
Reference in New Issue
Block a user