diff --git a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/RegisterVariable.kt b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/RegisterVariable.kt index 17d1da0f78..52ac661a48 100644 --- a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/RegisterVariable.kt +++ b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/RegisterVariable.kt @@ -25,7 +25,7 @@ import com.maddyhome.idea.vim.vimscript.model.datatypes.VimString * 'clipboard' contains "unnamed" or "unnamedplus", then it is * "*" or '+' ("unnamedplus" prevails). */ -class RegisterVariable : Variable() { +class RegisterVariable : Variable { override fun evaluate( name: String, diff --git a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/Variable.kt b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/Variable.kt index 710f5f35cc..14a6d6eb0b 100644 --- a/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/Variable.kt +++ b/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/vimscript/model/variables/Variable.kt @@ -16,6 +16,6 @@ import com.maddyhome.idea.vim.vimscript.model.datatypes.VimDataType /** * Base class for Vim variables */ -abstract class Variable { - abstract fun evaluate(name: String, editor: VimEditor, context: ExecutionContext, vimContext: VimLContext): VimDataType +interface Variable { + fun evaluate(name: String, editor: VimEditor, context: ExecutionContext, vimContext: VimLContext): VimDataType } \ No newline at end of file