getValue()/setValue() should be marked with 'operator'
This commit is contained in:
@@ -33,6 +33,7 @@ import org.jetbrains.kotlin.resolve.calls.results.OverloadResolutionResults;
|
|||||||
import org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowInfo;
|
import org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowInfo;
|
||||||
import org.jetbrains.kotlin.resolve.scopes.LexicalScope;
|
import org.jetbrains.kotlin.resolve.scopes.LexicalScope;
|
||||||
import org.jetbrains.kotlin.resolve.scopes.receivers.ExpressionReceiver;
|
import org.jetbrains.kotlin.resolve.scopes.receivers.ExpressionReceiver;
|
||||||
|
import org.jetbrains.kotlin.resolve.validation.OperatorValidator;
|
||||||
import org.jetbrains.kotlin.resolve.validation.SymbolUsageValidator;
|
import org.jetbrains.kotlin.resolve.validation.SymbolUsageValidator;
|
||||||
import org.jetbrains.kotlin.types.DeferredType;
|
import org.jetbrains.kotlin.types.DeferredType;
|
||||||
import org.jetbrains.kotlin.types.JetType;
|
import org.jetbrains.kotlin.types.JetType;
|
||||||
@@ -174,7 +175,7 @@ public class DelegatedPropertyResolver {
|
|||||||
trace.record(DELEGATED_PROPERTY_PD_RESOLVED_CALL, propertyDescriptor, functionResults.getResultingCall());
|
trace.record(DELEGATED_PROPERTY_PD_RESOLVED_CALL, propertyDescriptor, functionResults.getResultingCall());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Resolve get() or set() methods from delegate */
|
/* Resolve getValue() or setValue() methods from delegate */
|
||||||
private void resolveDelegatedPropertyConventionMethod(
|
private void resolveDelegatedPropertyConventionMethod(
|
||||||
@NotNull PropertyDescriptor propertyDescriptor,
|
@NotNull PropertyDescriptor propertyDescriptor,
|
||||||
@NotNull JetExpression delegateExpression,
|
@NotNull JetExpression delegateExpression,
|
||||||
@@ -213,6 +214,11 @@ public class DelegatedPropertyResolver {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FunctionDescriptor resultingDescriptor = functionResults.getResultingDescriptor();
|
||||||
|
if (!resultingDescriptor.isOperator()) {
|
||||||
|
OperatorValidator.Companion.report(delegateExpression, resultingDescriptor, trace);
|
||||||
|
}
|
||||||
|
|
||||||
ResolvedCall<FunctionDescriptor> resultingCall = functionResults.getResultingCall();
|
ResolvedCall<FunctionDescriptor> resultingCall = functionResults.getResultingCall();
|
||||||
PsiElement declaration = DescriptorToSourceUtils.descriptorToDeclaration(propertyDescriptor);
|
PsiElement declaration = DescriptorToSourceUtils.descriptorToDeclaration(propertyDescriptor);
|
||||||
if (declaration instanceof JetProperty) {
|
if (declaration instanceof JetProperty) {
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import org.jetbrains.kotlin.diagnostics.DiagnosticSink
|
|||||||
import org.jetbrains.kotlin.diagnostics.Errors
|
import org.jetbrains.kotlin.diagnostics.Errors
|
||||||
import org.jetbrains.kotlin.psi.*
|
import org.jetbrains.kotlin.psi.*
|
||||||
import org.jetbrains.kotlin.resolve.BindingContext
|
import org.jetbrains.kotlin.resolve.BindingContext
|
||||||
import org.jetbrains.kotlin.resolve.bindingContextUtil.get
|
|
||||||
import org.jetbrains.kotlin.resolve.BindingTrace
|
import org.jetbrains.kotlin.resolve.BindingTrace
|
||||||
import org.jetbrains.kotlin.resolve.calls.CallTransformer
|
import org.jetbrains.kotlin.resolve.calls.CallTransformer
|
||||||
import org.jetbrains.kotlin.resolve.calls.tasks.isDynamic
|
import org.jetbrains.kotlin.resolve.calls.tasks.isDynamic
|
||||||
@@ -35,7 +34,7 @@ public class OperatorValidator : SymbolUsageValidator {
|
|||||||
|
|
||||||
override fun validateCall(resolvedCall: ResolvedCall<*>?, targetDescriptor: CallableDescriptor, trace: BindingTrace, element: PsiElement) {
|
override fun validateCall(resolvedCall: ResolvedCall<*>?, targetDescriptor: CallableDescriptor, trace: BindingTrace, element: PsiElement) {
|
||||||
val functionDescriptor = targetDescriptor as? FunctionDescriptor ?: return
|
val functionDescriptor = targetDescriptor as? FunctionDescriptor ?: return
|
||||||
if (functionDescriptor.isDynamic() || ErrorUtils.isError(functionDescriptor)) return
|
if (!checkNotErrorOrDynamic(functionDescriptor)) return
|
||||||
|
|
||||||
val jetElement = element as? JetElement ?: return
|
val jetElement = element as? JetElement ?: return
|
||||||
val call = resolvedCall?.call ?: trace.bindingContext[BindingContext.CALL, jetElement]
|
val call = resolvedCall?.call ?: trace.bindingContext[BindingContext.CALL, jetElement]
|
||||||
@@ -71,9 +70,15 @@ public class OperatorValidator : SymbolUsageValidator {
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun report(element: JetElement, descriptor: FunctionDescriptor, sink: DiagnosticSink) {
|
fun report(element: JetElement, descriptor: FunctionDescriptor, sink: DiagnosticSink) {
|
||||||
|
if (!checkNotErrorOrDynamic(descriptor)) return
|
||||||
|
|
||||||
val containingDeclaration = descriptor.containingDeclaration
|
val containingDeclaration = descriptor.containingDeclaration
|
||||||
val containingDeclarationName = containingDeclaration.fqNameUnsafe.asString()
|
val containingDeclarationName = containingDeclaration.fqNameUnsafe.asString()
|
||||||
sink.report(Errors.OPERATOR_MODIFIER_REQUIRED.on(element, descriptor, containingDeclarationName))
|
sink.report(Errors.OPERATOR_MODIFIER_REQUIRED.on(element, descriptor, containingDeclarationName))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun checkNotErrorOrDynamic(functionDescriptor: FunctionDescriptor): Boolean {
|
||||||
|
return (!functionDescriptor.isDynamic() && !ErrorUtils.isError(functionDescriptor))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+14
-14
@@ -1,33 +1,33 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class OkDelegate {
|
class OkDelegate {
|
||||||
fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CustomDelegate2 {
|
class CustomDelegate2 {
|
||||||
fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
|
|
||||||
fun getValue(thisRef: Any?, prop: PropertyMetadata): Int = 5
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): Int = 5
|
||||||
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CustomDelegate3 {
|
class CustomDelegate3 {
|
||||||
fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun OkDelegate.get(thisRef: Any?, prop: PropertyMetadata): Int = 4
|
operator fun OkDelegate.get(thisRef: Any?, prop: PropertyMetadata): Int = 4
|
||||||
fun OkDelegate.set(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
operator fun OkDelegate.set(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
||||||
|
|
||||||
fun CustomDelegate3.getValue(thisRef: Any?, prop: PropertyMetadata): Int = 4
|
operator fun CustomDelegate3.getValue(thisRef: Any?, prop: PropertyMetadata): Int = 4
|
||||||
fun CustomDelegate3.setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
operator fun CustomDelegate3.setValue(thisRef: Any?, prop: PropertyMetadata, value: Int) {}
|
||||||
|
|
||||||
class Example {
|
class Example {
|
||||||
|
|
||||||
|
|||||||
+14
-14
@@ -1,36 +1,36 @@
|
|||||||
package
|
package
|
||||||
|
|
||||||
public fun OkDelegate.get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
public operator fun OkDelegate.get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public fun CustomDelegate3.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
public operator fun CustomDelegate3.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public fun OkDelegate.set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
public operator fun OkDelegate.set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||||
public fun CustomDelegate3.setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
public operator fun CustomDelegate3.setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||||
|
|
||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class CustomDelegate2 {
|
public final class CustomDelegate2 {
|
||||||
public constructor CustomDelegate2()
|
public constructor CustomDelegate2()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class CustomDelegate3 {
|
public final class CustomDelegate3 {
|
||||||
public constructor CustomDelegate3()
|
public constructor CustomDelegate3()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,8 +52,8 @@ public final class Example {
|
|||||||
public final class OkDelegate {
|
public final class OkDelegate {
|
||||||
public constructor OkDelegate()
|
public constructor OkDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class A<T: Any, V: String?>(<!INAPPLICABLE_LATEINIT_MODIFIER_PRIMARY_CONSTRUCTOR_PARAMETER!>lateinit<!> var p2: String) {
|
public abstract class A<T: Any, V: String?>(<!INAPPLICABLE_LATEINIT_MODIFIER_PRIMARY_CONSTRUCTOR_PARAMETER!>lateinit<!> var p2: String) {
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ public final class B {
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
annotation class Ann
|
annotation class Ann
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
}
|
}
|
||||||
|
|
||||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@field:Ann<!>
|
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@field:Ann<!>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ package
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
annotation class Ann
|
annotation class Ann
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
}
|
}
|
||||||
|
|
||||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@get:Ann<!>
|
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@get:Ann<!>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ package
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ annotation class Ann
|
|||||||
annotation class Second
|
annotation class Second
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
}
|
}
|
||||||
|
|
||||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@property:Ann<!>
|
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@property:Ann<!>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ package
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
annotation class Ann
|
annotation class Ann
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@set:Ann<!>
|
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@set:Ann<!>
|
||||||
|
|||||||
+2
-2
@@ -10,9 +10,9 @@ package
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
annotation class Ann
|
annotation class Ann
|
||||||
|
|
||||||
class CustomDelegate {
|
class CustomDelegate {
|
||||||
public fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||||
fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@setparam:Ann<!>
|
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@setparam:Ann<!>
|
||||||
|
|||||||
+2
-2
@@ -10,9 +10,9 @@ package
|
|||||||
public final class CustomDelegate {
|
public final class CustomDelegate {
|
||||||
public constructor CustomDelegate()
|
public constructor CustomDelegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
class Del {
|
class Del {
|
||||||
fun getValue(_this: Any?, p: PropertyMetadata): Int = 0
|
operator fun getValue(_this: Any?, p: PropertyMetadata): Int = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
fun df(del: Del): Del = del
|
fun df(del: Del): Del = del
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ public fun test(/*0*/ del: kotlin.Any?): kotlin.Unit
|
|||||||
public final class Del {
|
public final class Del {
|
||||||
public constructor Del()
|
public constructor Del()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ _this: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ _this: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by Delegate()
|
val a: Int by Delegate()
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a by Delegate()
|
val a by Delegate()
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ abstract class A {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -11,7 +11,7 @@ public abstract class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class B {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public final class B {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ val a: Int by Delegate()
|
|||||||
get
|
get
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ var a: Int by Delegate()
|
|||||||
private set
|
private set
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, i: Int) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, i: Int) {}
|
||||||
}
|
}
|
||||||
@@ -5,8 +5,8 @@ public var a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ fun foo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ public final class AImpl : A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ fun foo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): String {
|
operator fun getValue(t: Any?, p: PropertyMetadata): String {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ public final class AImpl : A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by A(1)
|
val a: Int by A(1)
|
||||||
|
|
||||||
class A<T: Any>(i: T) {
|
class A<T: Any>(i: T) {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): T {
|
operator fun getValue(t: Any?, p: PropertyMetadata): T {
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class A</*0*/ T : kotlin.Any> {
|
public final class A</*0*/ T : kotlin.Any> {
|
||||||
public constructor A</*0*/ T : kotlin.Any>(/*0*/ i: T)
|
public constructor A</*0*/ T : kotlin.Any>(/*0*/ i: T)
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ class Derived: Base()
|
|||||||
val a: Base by A()
|
val a: Base by A()
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Derived {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Derived {
|
||||||
return Derived()
|
return Derived()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: Base
|
|||||||
public final class A {
|
public final class A {
|
||||||
public constructor A()
|
public constructor A()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): Derived
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): Derived
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ interface T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -21,12 +21,12 @@ fun getMyConcreteProperty() = MyProperty<Any?, String>()
|
|||||||
|
|
||||||
class MyProperty<R, T> {
|
class MyProperty<R, T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
return null as T
|
return null as T
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(thisRef: R, desc: PropertyMetadata, value: T) {
|
operator fun setValue(thisRef: R, desc: PropertyMetadata, value: T) {
|
||||||
println("set $thisRef ${desc.name} $value")
|
println("set $thisRef ${desc.name} $value")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -26,9 +26,9 @@ package baz {
|
|||||||
public final class MyProperty</*0*/ R, /*1*/ T> {
|
public final class MyProperty</*0*/ R, /*1*/ T> {
|
||||||
public constructor MyProperty</*0*/ R, /*1*/ T>()
|
public constructor MyProperty</*0*/ R, /*1*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -5,7 +5,7 @@ class A1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MyProperty1 {}
|
class MyProperty1 {}
|
||||||
fun MyProperty1.getValue(thisRef: Any?, desc: PropertyMetadata): String {
|
operator fun MyProperty1.getValue(thisRef: Any?, desc: PropertyMetadata): String {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ class A2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MyProperty2<T> {}
|
class MyProperty2<T> {}
|
||||||
fun <T> MyProperty2<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
operator fun <T> MyProperty2<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ class A3 {
|
|||||||
|
|
||||||
class MyProperty3<T> {}
|
class MyProperty3<T> {}
|
||||||
|
|
||||||
fun <T> MyProperty3<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
operator fun <T> MyProperty3<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
package
|
package
|
||||||
|
|
||||||
package foo {
|
package foo {
|
||||||
public fun foo.MyProperty1.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
public operator fun foo.MyProperty1.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
||||||
public fun </*0*/ T> foo.MyProperty2<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
public operator fun </*0*/ T> foo.MyProperty2<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
|
|
||||||
public final class A1 {
|
public final class A1 {
|
||||||
public constructor A1()
|
public constructor A1()
|
||||||
@@ -26,7 +26,7 @@ package foo {
|
|||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
public final fun </*0*/ T> foo.A3.MyProperty3<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun </*0*/ T> foo.A3.MyProperty3<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
|
|
||||||
public final class MyProperty3</*0*/ T> {
|
public final class MyProperty3</*0*/ T> {
|
||||||
public constructor MyProperty3</*0*/ T>()
|
public constructor MyProperty3</*0*/ T>()
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ class B {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MyProperty<R : A, T> {
|
class MyProperty<R : A, T> {
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ package foo {
|
|||||||
public final class MyProperty</*0*/ R : foo.A, /*1*/ T> {
|
public final class MyProperty</*0*/ R : foo.A, /*1*/ T> {
|
||||||
public constructor MyProperty</*0*/ R : foo.A, /*1*/ T>()
|
public constructor MyProperty</*0*/ R : foo.A, /*1*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+6
-6
@@ -1,24 +1,24 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
|
|
||||||
class A<R>() {
|
class A<R>() {
|
||||||
fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
operator fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
||||||
fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
operator fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
var a1: Int by <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>A<!>()
|
var a1: Int by <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>A<!>()
|
||||||
var a2: Int by A<String>()
|
var a2: Int by A<String>()
|
||||||
|
|
||||||
class B<R>() {
|
class B<R>() {
|
||||||
fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
operator fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, x: R) = Unit
|
operator fun setValue(t: Any?, p: PropertyMetadata, x: R) = Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
var b1: Int by B()
|
var b1: Int by B()
|
||||||
var b2: Int by B<Number>()
|
var b2: Int by B<Number>()
|
||||||
|
|
||||||
class C<R>() {
|
class C<R>() {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): R = null!!
|
operator fun getValue(t: Any?, p: PropertyMetadata): R = null!!
|
||||||
fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
operator fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
var c1: Int by C()
|
var c1: Int by C()
|
||||||
|
|||||||
Vendored
+6
-6
@@ -10,26 +10,26 @@ public var c2: kotlin.Int
|
|||||||
public final class A</*0*/ R> {
|
public final class A</*0*/ R> {
|
||||||
public constructor A</*0*/ R>()
|
public constructor A</*0*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
public final operator fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
public final operator fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class B</*0*/ R> {
|
public final class B</*0*/ R> {
|
||||||
public constructor B</*0*/ R>()
|
public constructor B</*0*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
public final operator fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: R): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: R): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class C</*0*/ R> {
|
public final class C</*0*/ R> {
|
||||||
public constructor C</*0*/ R>()
|
public constructor C</*0*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): R
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): R
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
public final operator fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -8,16 +8,16 @@ val cObj = C()
|
|||||||
var c: String by cObj
|
var c: String by cObj
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
operator fun <T> getValue(t: Any?, p: PropertyMetadata): T = null!!
|
||||||
fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
operator fun <T> setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
class B
|
class B
|
||||||
|
|
||||||
fun <T> B.getValue(t: Any?, p: PropertyMetadata): T = null!!
|
operator fun <T> B.getValue(t: Any?, p: PropertyMetadata): T = null!!
|
||||||
fun <T> B.setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
operator fun <T> B.setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
||||||
|
|
||||||
class C
|
class C
|
||||||
|
|
||||||
inline fun <reified T> C.getValue(t: Any?, p: PropertyMetadata): T = null!!
|
operator inline fun <reified T> C.getValue(t: Any?, p: PropertyMetadata): T = null!!
|
||||||
inline fun <reified T> C.setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
operator inline fun <reified T> C.setValue(t: Any?, p: PropertyMetadata, x: T) = Unit
|
||||||
|
|||||||
+6
-6
@@ -5,17 +5,17 @@ public var a1: [ERROR : Type from delegate]
|
|||||||
public var b: kotlin.Int
|
public var b: kotlin.Int
|
||||||
public var c: kotlin.String
|
public var c: kotlin.String
|
||||||
public val cObj: C
|
public val cObj: C
|
||||||
public fun </*0*/ T> B.getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
public operator fun </*0*/ T> B.getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
@kotlin.inline() public fun </*0*/ reified T> C.getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
@kotlin.inline() public operator fun </*0*/ reified T> C.getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
public fun </*0*/ T> B.setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
public operator fun </*0*/ T> B.setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
||||||
@kotlin.inline() public fun </*0*/ reified T> C.setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
@kotlin.inline() public operator fun </*0*/ reified T> C.setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
||||||
|
|
||||||
public final class A {
|
public final class A {
|
||||||
public constructor A()
|
public constructor A()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
public final operator fun </*0*/ T> getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
public final operator fun </*0*/ T> setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ x: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ class A3 {
|
|||||||
|
|
||||||
class MyProperty<T> {}
|
class MyProperty<T> {}
|
||||||
|
|
||||||
fun <T> MyProperty<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
operator fun <T> MyProperty<T>.getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Vendored
+1
-1
@@ -6,7 +6,7 @@ public final class A3 {
|
|||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
public final fun </*0*/ T> A3.MyProperty<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun </*0*/ T> A3.MyProperty<T>.getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
|
|
||||||
public final class MyProperty</*0*/ T> {
|
public final class MyProperty</*0*/ T> {
|
||||||
public constructor MyProperty</*0*/ T>()
|
public constructor MyProperty</*0*/ T>()
|
||||||
|
|||||||
Vendored
+4
-4
@@ -9,11 +9,11 @@ fun <A, B> getMyProperty1() = MyProperty1<A, B>()
|
|||||||
|
|
||||||
class MyProperty1<T, R> {
|
class MyProperty1<T, R> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(i: Int, j: Int, k: Int) {
|
operator fun setValue(i: Int, j: Any, k: Int) {
|
||||||
println("set")
|
println("set")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,11 +29,11 @@ fun <A, B> getMyProperty2() = MyProperty2<A, B>()
|
|||||||
|
|
||||||
class MyProperty2<T, R> {
|
class MyProperty2<T, R> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(i: Int) {
|
<!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun setValue(i: Int) {
|
||||||
println("set")
|
println("set")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+4
-4
@@ -26,18 +26,18 @@ package foo {
|
|||||||
public final class MyProperty1</*0*/ T, /*1*/ R> {
|
public final class MyProperty1</*0*/ T, /*1*/ R> {
|
||||||
public constructor MyProperty1</*0*/ T, /*1*/ R>()
|
public constructor MyProperty1</*0*/ T, /*1*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ i: kotlin.Int, /*1*/ j: kotlin.Int, /*2*/ k: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ i: kotlin.Int, /*1*/ j: kotlin.Any, /*2*/ k: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class MyProperty2</*0*/ T, /*1*/ R> {
|
public final class MyProperty2</*0*/ T, /*1*/ R> {
|
||||||
public constructor MyProperty2</*0*/ T, /*1*/ R>()
|
public constructor MyProperty2</*0*/ T, /*1*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ i: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -4,11 +4,11 @@ class A {
|
|||||||
|
|
||||||
class MyProperty<T, R> {
|
class MyProperty<T, R> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
throw Exception("$thisRef $desc")
|
throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(thisRef: R, desc: PropertyMetadata, t: T) {
|
operator fun setValue(thisRef: R, desc: PropertyMetadata, t: T) {
|
||||||
throw Exception("$thisRef $desc $t")
|
throw Exception("$thisRef $desc $t")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -11,8 +11,8 @@ public final class A {
|
|||||||
public final class MyProperty</*0*/ T, /*1*/ R> {
|
public final class MyProperty</*0*/ T, /*1*/ R> {
|
||||||
public constructor MyProperty</*0*/ T, /*1*/ R>()
|
public constructor MyProperty</*0*/ T, /*1*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ t: T): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ t: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -9,5 +9,5 @@ class A {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MyProperty<R> {
|
class MyProperty<R> {
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): Int = throw Exception("$thisRef $desc")
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): Int = throw Exception("$thisRef $desc")
|
||||||
}
|
}
|
||||||
Vendored
+1
-1
@@ -12,7 +12,7 @@ public final class A {
|
|||||||
public final class MyProperty</*0*/ R> {
|
public final class MyProperty</*0*/ R> {
|
||||||
public constructor MyProperty</*0*/ R>()
|
public constructor MyProperty</*0*/ R>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -12,12 +12,12 @@ fun <A, B> getMyProperty1() = MyProperty1<A, B>()
|
|||||||
|
|
||||||
class MyProperty1<R, T> {
|
class MyProperty1<R, T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(thisRef: R, desc: PropertyMetadata, value: T) {
|
operator fun setValue(thisRef: R, desc: PropertyMetadata, value: T) {
|
||||||
println("set $thisRef ${desc.name} $value")
|
println("set $thisRef ${desc.name} $value")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,12 +36,12 @@ fun <A> getMyProperty2() = MyProperty2<A>()
|
|||||||
|
|
||||||
class MyProperty2<T> {
|
class MyProperty2<T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(thisRef: Any?, desc: PropertyMetadata, value: T) {
|
operator fun setValue(thisRef: Any?, desc: PropertyMetadata, value: T) {
|
||||||
println("set $thisRef ${desc.name} $value")
|
println("set $thisRef ${desc.name} $value")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,12 +60,12 @@ fun <A> getMyProperty3() = MyProperty3<A>()
|
|||||||
|
|
||||||
class MyProperty3<T> {
|
class MyProperty3<T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: T, desc: PropertyMetadata): String {
|
operator fun getValue(thisRef: T, desc: PropertyMetadata): String {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun setValue(thisRef: Any?, desc: PropertyMetadata, value: T) {
|
operator fun setValue(thisRef: Any?, desc: PropertyMetadata, value: T) {
|
||||||
println("set $thisRef ${desc.name} $value")
|
println("set $thisRef ${desc.name} $value")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -42,27 +42,27 @@ package foo {
|
|||||||
public final class MyProperty1</*0*/ R, /*1*/ T> {
|
public final class MyProperty1</*0*/ R, /*1*/ T> {
|
||||||
public constructor MyProperty1</*0*/ R, /*1*/ T>()
|
public constructor MyProperty1</*0*/ R, /*1*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class MyProperty2</*0*/ T> {
|
public final class MyProperty2</*0*/ T> {
|
||||||
public constructor MyProperty2</*0*/ T>()
|
public constructor MyProperty2</*0*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class MyProperty3</*0*/ T> {
|
public final class MyProperty3</*0*/ T> {
|
||||||
public constructor MyProperty3</*0*/ T>()
|
public constructor MyProperty3</*0*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: T, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: T, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
public final operator fun setValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -12,7 +12,7 @@ fun <A, B> getMyProperty1() = MyProperty1<A, B>()
|
|||||||
|
|
||||||
class MyProperty1<R, T> {
|
class MyProperty1<R, T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: R, desc: PropertyMetadata): T {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ fun <A> getMyProperty2() = MyProperty2<A>()
|
|||||||
|
|
||||||
class MyProperty2<T> {
|
class MyProperty2<T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
operator fun getValue(thisRef: Any?, desc: PropertyMetadata): T {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
throw Exception()
|
throw Exception()
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ fun <A> getMyProperty3() = MyProperty3<A>()
|
|||||||
|
|
||||||
class MyProperty3<T> {
|
class MyProperty3<T> {
|
||||||
|
|
||||||
public fun getValue(thisRef: T, desc: PropertyMetadata): String {
|
operator fun getValue(thisRef: T, desc: PropertyMetadata): String {
|
||||||
println("get $thisRef ${desc.name}")
|
println("get $thisRef ${desc.name}")
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -42,7 +42,7 @@ package foo {
|
|||||||
public final class MyProperty1</*0*/ R, /*1*/ T> {
|
public final class MyProperty1</*0*/ R, /*1*/ T> {
|
||||||
public constructor MyProperty1</*0*/ R, /*1*/ T>()
|
public constructor MyProperty1</*0*/ R, /*1*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ package foo {
|
|||||||
public final class MyProperty2</*0*/ T> {
|
public final class MyProperty2</*0*/ T> {
|
||||||
public constructor MyProperty2</*0*/ T>()
|
public constructor MyProperty2</*0*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ desc: kotlin.PropertyMetadata): T
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ package foo {
|
|||||||
public final class MyProperty3</*0*/ T> {
|
public final class MyProperty3</*0*/ T> {
|
||||||
public constructor MyProperty3</*0*/ T>()
|
public constructor MyProperty3</*0*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ thisRef: T, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ thisRef: T, /*1*/ desc: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
var a: Int by <!DELEGATE_SPECIAL_FUNCTION_MISSING(setValue\(kotlin.Nothing?, kotlin.PropertyMetadata, kotlin.Int\); A)!>A()<!>
|
var a: Int by <!DELEGATE_SPECIAL_FUNCTION_MISSING(setValue\(kotlin.Nothing?, kotlin.PropertyMetadata, kotlin.Int\); A)!>A()<!>
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ public var a: kotlin.Int
|
|||||||
public final class A {
|
public final class A {
|
||||||
public constructor A()
|
public constructor A()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,5 +5,5 @@ class B {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate<T: Any>(val init: T) {
|
class Delegate<T: Any>(val init: T) {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int = null!!
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int = null!!
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ public final class Delegate</*0*/ T : kotlin.Any> {
|
|||||||
public constructor Delegate</*0*/ T : kotlin.Any>(/*0*/ init: T)
|
public constructor Delegate</*0*/ T : kotlin.Any>(/*0*/ init: T)
|
||||||
public final val init: T
|
public final val init: T
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by <!DELEGATE_SPECIAL_FUNCTION_AMBIGUITY!>Delegate()<!>
|
val a: Int by <!DELEGATE_SPECIAL_FUNCTION_AMBIGUITY!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata, /*1*/ i: kotlin.Int = ...): kotlin.Unit
|
public final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata, /*1*/ i: kotlin.Int = ...): kotlin.Unit
|
||||||
public final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata, /*1*/ s: kotlin.String = ...): kotlin.Unit
|
public final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata, /*1*/ s: kotlin.String = ...): kotlin.Unit
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun </*0*/ T> propertyDelegated(/*0*/ p: kotlin.PropertyMetadata): kotlin.Unit
|
public final fun </*0*/ T> propertyDelegated(/*0*/ p: kotlin.PropertyMetadata): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by Delegate()
|
val a: Int by Delegate()
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
private final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata): kotlin.Unit
|
private final fun propertyDelegated(/*0*/ p: kotlin.PropertyMetadata): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun propertyDelegated(): kotlin.Unit
|
public final fun propertyDelegated(): kotlin.Unit
|
||||||
public final fun propertyDelegated(/*0*/ a: kotlin.Int): kotlin.Unit
|
public final fun propertyDelegated(/*0*/ a: kotlin.Int): kotlin.Unit
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ val c by <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>d<!>
|
|||||||
val d by <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>c<!>
|
val d by <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>c<!>
|
||||||
|
|
||||||
class Delegate(i: Int) {
|
class Delegate(i: Int) {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,7 @@ public val d: [ERROR : <ERROR FUNCTION RETURN TYPE>]
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate(/*0*/ i: kotlin.Int)
|
public constructor Delegate(/*0*/ i: kotlin.Int)
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ val a: Int by Delegate()
|
|||||||
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>get() = 1<!>
|
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>get() = 1<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ public val a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ var a: Int by Delegate()
|
|||||||
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>set(i) {}<!>
|
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>set(i) {}<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, i: Int) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, i: Int) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ public var a: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -9,8 +9,8 @@ var cTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
|||||||
class A
|
class A
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
fun setValue(t: A, p: PropertyMetadata, i: Int) {}
|
operator fun setValue(t: A, p: PropertyMetadata, i: Int) {}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -20,8 +20,8 @@ public final class D {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: A, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: A, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -6,10 +6,10 @@ class Derived: Base()
|
|||||||
var a: Derived by A()
|
var a: Derived by A()
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Derived {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Derived {
|
||||||
return Derived()
|
return Derived()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, i: Base) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, i: Base) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ public var a: Derived
|
|||||||
public final class A {
|
public final class A {
|
||||||
public constructor A()
|
public constructor A()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): Derived
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): Derived
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: Base): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: Base): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class A {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Delegate(i: Int) {
|
class Delegate(i: Int) {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ public final class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate(/*0*/ i: kotlin.Int)
|
public constructor Delegate(/*0*/ i: kotlin.Int)
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ class A {
|
|||||||
var aTopLevel: Int by Delegate()
|
var aTopLevel: Int by Delegate()
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, a: Int) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, a: Int) {}
|
||||||
}
|
}
|
||||||
@@ -13,8 +13,8 @@ public final class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -5,11 +5,11 @@ class A {
|
|||||||
var aTopLevel: Int by Delegate()
|
var aTopLevel: Int by Delegate()
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Nothing?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Nothing?, p: PropertyMetadata): Int {
|
||||||
p.equals(null) // to avoid UNUSED_PARAMETER warning
|
p.equals(null) // to avoid UNUSED_PARAMETER warning
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
fun setValue(t: Nothing?, p: PropertyMetadata, a: Int) {
|
operator fun setValue(t: Nothing?, p: PropertyMetadata, a: Int) {
|
||||||
p.equals(a) // to avoid UNUSED_PARAMETER warning
|
p.equals(a) // to avoid UNUSED_PARAMETER warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -13,8 +13,8 @@ public final class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Nothing?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Nothing?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Nothing?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Nothing?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
val c: Int by <!DELEGATE_SPECIAL_FUNCTION_RETURN_TYPE_MISMATCH!>Delegate()<!>
|
val c: Int by <!DELEGATE_SPECIAL_FUNCTION_RETURN_TYPE_MISMATCH!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): String {
|
operator fun getValue(t: Any?, p: PropertyMetadata): String {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ public val c: kotlin.Int
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.String
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.String
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ class C {
|
|||||||
val cTopLevel: Int by Delegate<Nothing?>()
|
val cTopLevel: Int by Delegate<Nothing?>()
|
||||||
|
|
||||||
class Delegate<T> {
|
class Delegate<T> {
|
||||||
fun getValue(t: T, p: PropertyMetadata): Int {
|
operator fun getValue(t: T, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -29,7 +29,7 @@ public final class C {
|
|||||||
public final class Delegate</*0*/ T> {
|
public final class Delegate</*0*/ T> {
|
||||||
public constructor Delegate</*0*/ T>()
|
public constructor Delegate</*0*/ T>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: T, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: T, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -7,8 +7,8 @@ class A {
|
|||||||
var aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
var aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, i: String) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, i: String) {}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ public final class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.String): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ i: kotlin.String): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -7,9 +7,9 @@ class A {
|
|||||||
var aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
var aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
fun getValue(t: Any?, p: PropertyMetadata): Int {
|
operator fun getValue(t: Any?, p: PropertyMetadata): Int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setValue(t: Any?, p: PropertyMetadata, a: Int, c: Int) {}
|
operator fun setValue(t: Any?, p: PropertyMetadata, a: Int, c: Int) {}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -13,8 +13,8 @@ public final class A {
|
|||||||
public final class Delegate {
|
public final class Delegate {
|
||||||
public constructor Delegate()
|
public constructor Delegate()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public final fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
public final operator fun getValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public final fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int, /*3*/ c: kotlin.Int): kotlin.Unit
|
public final operator fun setValue(/*0*/ t: kotlin.Any?, /*1*/ p: kotlin.PropertyMetadata, /*2*/ a: kotlin.Int, /*3*/ c: kotlin.Int): kotlin.Unit
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user