mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Trivial isoltest updates: missing // ---- at the end
This commit is contained in:
committed by
Kamil Śliwak
parent
84c05d35f3
commit
1be07c2b36
@@ -11,3 +11,4 @@ contract B is A {
|
||||
function h(uint[] memory) public override { dummy = 42; }
|
||||
function i(uint[] memory) public override payable {}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -11,3 +11,4 @@ contract C is I {
|
||||
function h(uint[] memory) public override { dummy = 42; }
|
||||
function i(uint[] memory) public override payable {}
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -10,3 +10,4 @@ contract C {
|
||||
i.f(new uint[](1));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -10,3 +10,4 @@ abstract contract B is I {
|
||||
}
|
||||
contract C is A, B {
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -10,3 +10,4 @@ abstract contract B is I
|
||||
}
|
||||
// This is fine because `f` is not implemented in `I` and `A.f` is the only mention below `I`.
|
||||
abstract contract C is A, B {}
|
||||
// ----
|
||||
|
||||
@@ -5,3 +5,4 @@ contract B is A {
|
||||
function f() public override pure {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
interface ERC20 { function x() external returns (uint); }
|
||||
contract C is ERC20 { uint public override x; }
|
||||
// ----
|
||||
|
||||
+1
@@ -5,3 +5,4 @@ contract Y is X {
|
||||
contract T {
|
||||
constructor() { new Y(); }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ contract B {
|
||||
contract C is A, B {
|
||||
modifier f() override(A,B) { _; }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -9,3 +9,4 @@ contract C is B {
|
||||
function f() override internal {}
|
||||
function i() pure internal { f; }
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -17,3 +17,4 @@ abstract contract B is IJ
|
||||
function g() external override {}
|
||||
}
|
||||
contract C is A, B {}
|
||||
// ----
|
||||
|
||||
+1
@@ -17,3 +17,4 @@ abstract contract B is IJ
|
||||
function g() external override {}
|
||||
}
|
||||
abstract contract C is A, B {}
|
||||
// ----
|
||||
|
||||
@@ -16,3 +16,4 @@ contract X is A, B, C, D {
|
||||
function test() internal override returns (uint256) {}
|
||||
function foo() internal override(A, B, C, D) returns (uint256) {}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -13,3 +13,4 @@ contract B is I {
|
||||
contract X is A, B {
|
||||
function set() public override(A, B) { super.set(); }
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -8,3 +8,4 @@ contract B is I {}
|
||||
contract C is A, B {
|
||||
function f() external override(A, I) {}
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -4,3 +4,4 @@ contract I {
|
||||
contract A is I {}
|
||||
contract B is I {}
|
||||
contract C is A, B {}
|
||||
// ----
|
||||
|
||||
@@ -7,3 +7,4 @@ interface B {
|
||||
abstract contract C is A, B {
|
||||
function f() external virtual override(A, B);
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -10,3 +10,4 @@ abstract contract C {
|
||||
contract D is C {
|
||||
mapping(address => S) public override f;
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
@@ -11,3 +11,4 @@ abstract contract C {
|
||||
contract D is C {
|
||||
S public override f;
|
||||
}
|
||||
// ----
|
||||
|
||||
@@ -6,3 +6,4 @@ contract ERC20 {
|
||||
contract C is ERC20 {
|
||||
mapping(address => uint) public override balanceOf;
|
||||
}
|
||||
// ----
|
||||
|
||||
Reference in New Issue
Block a user