livefront / sealed-enum

A Kotlin annotation processor that makes writing normal enum classes obsolete.
Apache License 2.0
149 stars 7 forks source link

Add nested objects test for KSP #91

Closed alexvanyo closed 3 years ago

alexvanyo commented 3 years ago

Adds a KSP-specific test for a sealed class that is contained inside a companion object.

With the default Companion name for both companion objects, this won't work with KAPT, since the generated stubs aren't valid Java. Since this is perfectly valid Kotlin though, KSP has no issue.

This fixes #60