Move DummyDelegate to :compiler:util
Deleted DummyDelegate from a pair of usages across the project, and moved it to :compiler:util module to avoid further duplicates
This commit is contained in:
committed by
Space Team
parent
2578bfefd5
commit
fd2954a8d3
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.utils
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class DummyDelegate<T>(val value: T) : ReadOnlyProperty<Any?, T> {
|
||||
override fun getValue(thisRef: Any?, property: KProperty<*>): T = value
|
||||
}
|
||||
Reference in New Issue
Block a user