Skip to content

Commit

Permalink
Add ValueEnum restriction to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydmeta committed Aug 13, 2016
1 parent 1b97b10 commit 660b94e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -228,6 +228,7 @@ LibraryItem.withValue(10) // => java.util.NoSuchElementException:

**Restrictions**
- `ValueEnum`s must have their value members implemented as literal values.
- `ValueEnum`s cannot be nested (e.g. declaring one enum inside another)
- `ValueEnum`s are not available in Scala 2.10.x and does not work in the REPL because constructor argument calls are not yet
typed during macro expansion (`fun.tpe` returns `null`).

Expand Down

0 comments on commit 660b94e

Please sign in to comment.