/enumCapturesProperty.kts:8:1: error: Enum class Bar captures the script class instance. Try to use class or anonymous object instead