data modifier is now inapplicable to enum classes, annotations, objects and interfaces #KT-8302 Fixed
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user