Bring conditional contracts up to new syntax

We can't run them, but there here for if we ever figure it out!
pull/319/head
Alex 6 years ago
parent 8adfa317db
commit 5882fc50ba
  1. 6
      test/sources/conditional/declarative-exp-assignment-alternate.sol
  2. 8
      test/sources/conditional/identifier-assignment-alternate.sol
  3. 2
      test/sources/conditional/mapping-assignment.sol
  4. 6
      test/sources/conditional/multiline-alternate.sol
  5. 6
      test/sources/conditional/multiline-consequent.sol
  6. 6
      test/sources/conditional/sameline-alternate.sol
  7. 6
      test/sources/conditional/sameline-consequent.sol
  8. 8
      test/sources/conditional/variable-decl-assignment-alternate.sol

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = false;
var y = false;
function a() public {
bool x = false;
bool y = false;
bool z = (x) ? false : true;
}
}

@ -1,10 +1,10 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = false;
var y = false;
var z = false;
function a() public {
bool x = false;
bool y = false;
bool z = false;
z = (x) ? false : true;
}
}

@ -7,7 +7,7 @@ contract Test {
Vote vote;
function a(){
function a() public {
var isYay = false;
vote.voted[msg.sender] = isYay ? 1 : 2;
}

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = false;
var y = false;
function a() public {
bool x = false;
bool y = false;
(x)
? y = false
: y = false;

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = true;
var y = false;
function a() public {
bool x = true;
bool y = false;
(x)
? y = false
: y = false;

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = false;
var y = false;
function a() public {
bool x = false;
bool y = false;
(x) ? y = false : y = false;
}
}

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = true;
var y = false;
function a() public {
bool x = true;
bool y = false;
(x) ? y = false : y = false;
}
}

@ -1,9 +1,9 @@
pragma solidity ^0.5.0;
contract Test {
function a() {
var x = false;
var y = false;
var z = (x) ? false : true;
function a() public {
bool x = false;
bool y = false;
bool z = (x) ? false : true;
}
}
Loading…
Cancel
Save