mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
277 B
Solidity
10 lines
277 B
Solidity
contract test {
|
|
enum Paper { Up, Down, Left, Right }
|
|
enum Ground { North, South, West, East }
|
|
constructor() {
|
|
Ground(Paper.Up);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9640: (130-146): Explicit type conversion not allowed from "enum test.Paper" to "enum test.Ground".
|