diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol b/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol index 4c4a1217..602c26ed 100644 --- a/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol +++ b/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol @@ -1,10 +1,9 @@ contract c { enum validEnum { Value1, Value2, Value3, Value4 } - function c() { + constructor() { a = validEnum.Value3; } validEnum a; } // ---- -// Warning: (71-121): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. -// Warning: (71-121): No visibility specified. Defaulting to "public". +// Warning: (71-122): No visibility specified. Defaulting to "public". |