Replace get() and set() to getValue() and setValue() (property delegates)
This commit is contained in:
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: <html>Class 'Foo' must be declared abstract or implement abstract member<br/><b>public</b> <b>abstract</b> <b>fun</b> get(thisRef: A<T>, property: kotlin.PropertyMetadata): B <i>defined in</i> kotlin.properties.ReadOnlyProperty</html>
|
||||
|
||||
open class B
|
||||
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: <html>Class 'Foo' must be declared abstract or implement abstract member<br/><b>public</b> <b>abstract</b> <b>fun</b> get(thisRef: A<T>, property: kotlin.PropertyMetadata): B <i>defined in</i> kotlin.properties.ReadOnlyProperty</html>
|
||||
|
||||
open class B
|
||||
|
||||
|
||||
+13
@@ -1,3 +1,5 @@
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.PropertyMetadata;
|
||||
import kotlin.properties.ReadOnlyProperty;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -6,5 +8,16 @@ class J {
|
||||
public static class Foo<T> implements ReadOnlyProperty<A<T>, B> {
|
||||
public Foo(T t, @NotNull String s) {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public B get(@NotNull A<T> thisRef, @NotNull PropertyMetadata property) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public B getValue(@NotNull A<T> thisRef, @NotNull PropertyMetadata property) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user