Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
Revert "KT-2193 Nullability information lost for functions inherited from traits".
This reverts commit d60818fd3e.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
package test
|
||||
|
||||
// test composed from KT-2193
|
||||
|
||||
trait A {
|
||||
open fun f(): String = "test"
|
||||
}
|
||||
|
||||
class B() : A
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace test
|
||||
|
||||
abstract trait test.A : jet.Any {
|
||||
open fun f(): jet.String
|
||||
}
|
||||
final class test.B : test.A {
|
||||
final /*constructor*/ fun <init>(): test.B
|
||||
open override /*1*/ fun f(): jet.String
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package test
|
||||
|
||||
// test composed from KT-2193
|
||||
|
||||
trait A {
|
||||
open var v: String
|
||||
get() = "test"
|
||||
set(value) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
class B() : A
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace test
|
||||
|
||||
abstract trait test.A : jet.Any {
|
||||
open var v: jet.String
|
||||
}
|
||||
final class test.B : test.A {
|
||||
final /*constructor*/ fun <init>(): test.B
|
||||
open var v: jet.String
|
||||
}
|
||||
Reference in New Issue
Block a user