Updates syntax tests to new constructor syntax.

This commit is contained in:
Erik Kundt
2018-06-29 11:27:01 +02:00
parent 12c4eb7697
commit 1346b4407f
20 changed files with 43 additions and 50 deletions
@@ -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".