BaseState object property must allow only base state as parent type, add test for Compound RC serialization

This commit is contained in:
Vladimir Krivosheev
2018-09-14 10:46:40 +03:00
parent 8752e3ae09
commit 1e26c6c926
16 changed files with 122 additions and 129 deletions

View File

@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.roots
import com.intellij.openapi.components.BaseState
@@ -9,5 +7,5 @@ import com.intellij.util.xmlb.annotations.Attribute
class LanguageLevelState : BaseState() {
@get:Attribute("LANGUAGE_LEVEL")
var languageLevel: LanguageLevel? by property<LanguageLevel?>()
var languageLevel by enum<LanguageLevel>()
}