Fix "operator modifier required" errors in project

This commit is contained in:
Yan Zhulanow
2015-11-24 18:15:08 +03:00
parent 46ac3571d5
commit 87799e9b6b
18 changed files with 25 additions and 25 deletions
@@ -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()