Groovy web console

subscribe to the feed Subscribe
to this
site
enum-coercion (via #groovywebconsole)
tweet this snippet Tweet
this
script

enum-coercion

Published 2 months ago by d.antoniuk
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
enum E {  
  A,
  B
}
E e = 'A' as E;