Fix "operator modifier required" errors in project
This commit is contained in:
@@ -43,7 +43,7 @@ public class ReflectionTypes(private val module: ModuleDescriptor) {
|
||||
}
|
||||
|
||||
private object ClassLookup {
|
||||
fun getValue(types: ReflectionTypes, property: PropertyMetadata): ClassDescriptor {
|
||||
operator fun getValue(types: ReflectionTypes, property: PropertyMetadata): ClassDescriptor {
|
||||
return types.find(property.name.capitalize())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public abstract class TypeSubstitution {
|
||||
}
|
||||
}
|
||||
|
||||
public abstract fun get(key: KotlinType): TypeProjection?
|
||||
public abstract operator fun get(key: KotlinType): TypeProjection?
|
||||
|
||||
public open fun isEmpty(): Boolean = false
|
||||
|
||||
|
||||
@@ -32,6 +32,6 @@ public interface NullableLazyValue<T : Any> : Function0<T?> {
|
||||
public fun isComputed(): Boolean
|
||||
}
|
||||
|
||||
public fun <T : Any> NotNullLazyValue<T>.getValue(_this: Any?, p: PropertyMetadata): T = invoke()
|
||||
public operator fun <T : Any> NotNullLazyValue<T>.getValue(_this: Any?, p: PropertyMetadata): T = invoke()
|
||||
|
||||
public fun <T : Any> NullableLazyValue<T>.getValue(_this: Any?, p: PropertyMetadata): T? = invoke()
|
||||
public operator fun <T : Any> NullableLazyValue<T>.getValue(_this: Any?, p: PropertyMetadata): T? = invoke()
|
||||
|
||||
Reference in New Issue
Block a user