I am converting the following code in C++ to Scala :
enum Value{ a = 0 , b = 0 , c = 12 , d = 13}
and I have implemented in following way :
object Value extends Enumeration {
 val a = Value(0) 
 val b = Value(0) 
 val c = Value(12) 
 val d = Value(13) 
}
but it displays an error when I called Value(0).id reporting 
java.lang.AssertionError: assertion failed: Duplicate id: 0
How to assign duplicate values ?
 
     
    