data modifier is now inapplicable to enum classes, annotations, objects and interfaces #KT-8302 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-09-23 13:04:13 +03:00
parent 315a304c8e
commit 789f351f6f
5 changed files with 66 additions and 3 deletions
@@ -9,13 +9,13 @@ interface Type {
protected fun String.withSuffix(): String = if (nullable) "$this?" else this
}
data object UnitType : Type {
object UnitType : Type {
override val nullable: Boolean
get() = false
override fun render() = "Unit"
}
data object DynamicType : Type {
object DynamicType : Type {
override val nullable: Boolean
get() = false