# Enum can only be String

**URL:** https://talk.remobjects.com/t/enum-can-only-be-string/26808
**Category:** Silver
**Created:** [June 15, 2022, 8:37am UTC](https://talk.remobjects.com/t/enum-can-only-be-string/26808 "2022-06-15T08:37:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ndelic](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ndelic/32/526_2.png) [@ndelic](https://talk.remobjects.com/u/ndelic)
#### Post date: [June 15, 2022, 8:37am UTC](https://talk.remobjects.com/t/enum-can-only-be-string/26808/1 "2022-06-15T08:37:37Z")

</div>

Definition of enum on Android:

```auto
enum SomeEnum { case one, two, three } // Fails on Android
enum SomeIntEnum: Int { case one, two, three } // Fails on Android
enum SomeIntEnum: String { case one, two, three } // Compiles

```

doesn’t compile unless raw value is String or project is .NET.

Test project attached.

[EnumTest.zip](https://talk.remobjects.com/uploads/short-url/vXVwtSMkYB8pAEs3KwaJmDJp7Oe.zip) (429.9 KB)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [June 15, 2022, 11:06am UTC](https://talk.remobjects.com/t/enum-can-only-be-string/26808/2 "2022-06-15T11:06:47Z")

</div>

Logged as [bugs://E25948](https://www.remobjects.com/portal/bugs/?id=E25948).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [June 15, 2022, 7:19pm UTC](https://talk.remobjects.com/t/enum-can-only-be-string/26808/3 "2022-06-15T19:19:44Z")

</div>

[bugs://E25948](https://www.remobjects.com/portal/bugs/?id=E25948) was closed as fixed.
