My `enum class` looks like ``` enum class Conditio...
# announcements
k
My
enum class
looks like
Copy code
enum class Condition {

    EXACT {
        override fun evaluate(actual: Set<String>, expected: Set<String>) = actual == expected
    },

//....

    abstract fun evaluate(actual: Set<String>, expected: Set<String>): Boolean
}
t
gradle, java, kotlin versions?
Copy code
./gradlew -v

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time:   2018-11-26 11:48:43 UTC
Revision:     7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL:   1.0.4
Kotlin:       1.3.10
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11.0.1 (Oracle Corporation 11.0.1+13-Debian-2)
OS:           Linux 4.15.0-39-generic amd64
Copy code
enum class Test {
		TEST {
			override val displayName: String = "Test"
			override fun test(string: String) = string
		};

		abstract val displayName: String
		abstract fun test(string: String): String

	}
compiles fine with me
interesting formatting 🤔 I meant, with
./gradlew -v
as you see it, that enum
Test
compiles fine
k
@thanksforallthefish The problem is with kapt I think:
Copy code
> Task :kaptGenerateStubsKotlin
e: …/Condition.java:16: error: invalid method declaration; return type required
        Condition() {
        ^
My versions are
Copy code
➜ gradle -v                                                             
executing gradlew instead of gradle

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time:   2018-11-26 11:48:43 UTC
Revision:     7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL:   1.0.4
Kotlin:       1.3.10
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11.0.1 (Oracle Corporation 11.0.1+13)
OS:           Linux 4.19.4-arch1-1-ARCH amd64
t
ah, missed that bit. and there I cannot help, I never used
kapt
k
😞
h
You could try asking in #C2R77UD35
k
Oh I will, thanks!