Skip to content

Commit 7bdcac1

Browse files
authored
Update solc 0.6.x test for immutable & solc 0.6.5 (#501)
1 parent 2337168 commit 7bdcac1

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

test/integration/projects/solc-6/buidler.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ usePlugin("@nomiclabs/buidler-truffle5");
55
module.exports={
66
defaultNetwork: "buidlerevm",
77
solc: {
8-
version: "0.6.2"
8+
version: "0.6.5"
99
}
1010
};

test/integration/projects/solc-6/contracts/ContractA.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ contract ContractA is ContractB {
99
uint counter;
1010
uint errorCount;
1111

12+
uint private immutable _a = 100;
13+
uint private immutable override _b = 100;
14+
1215
modifier overridden() override {
1316
require(true);
1417
_;

test/integration/projects/solc-6/contracts/ContractB.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pragma solidity ^0.6.0;
33

44
contract ContractB {
55
uint value;
6+
uint b;
67

78
constructor() public {
89
}

0 commit comments

Comments
 (0)