mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -2,5 +2,5 @@ contract A { function foo() public { new D(); } }
|
||||
contract C { function foo() public { new A(); } }
|
||||
contract D is C {}
|
||||
// ----
|
||||
// TypeError 7813: (37-42): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (87-92): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (37-42='new D'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (87-92='new A'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ contract D
|
||||
receive() external payable { f; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 7813: (16-21): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (16-21='new D'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
@@ -5,5 +5,5 @@ contract D {
|
||||
function foo() public pure { C; }
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (43-44): Statement has no effect.
|
||||
// Warning 6133: (93-94): Statement has no effect.
|
||||
// Warning 6133: (43-44='D'): Statement has no effect.
|
||||
// Warning 6133: (93-94='C'): Statement has no effect.
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
constructor() { new C(); }
|
||||
}
|
||||
// ----
|
||||
// TypeError 7813: (30-35): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (30-35='new C'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
+6
-6
@@ -5,9 +5,9 @@ contract D { E x = new E(); }
|
||||
contract E { F x = new F(); }
|
||||
contract F { E x = new E(); }
|
||||
// ----
|
||||
// TypeError 7813: (19-24): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (49-54): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (79-84): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (109-114): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (139-144): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (169-174): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (19-24='new B'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (49-54='new C'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (79-84='new D'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (109-114='new E'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (139-144='new F'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (169-174='new E'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
+2
-2
@@ -5,5 +5,5 @@ contract D {
|
||||
function foo() public pure { type(C); }
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (43-50): Statement has no effect.
|
||||
// Warning 6133: (99-106): Statement has no effect.
|
||||
// Warning 6133: (43-50='type(D)'): Statement has no effect.
|
||||
// Warning 6133: (99-106='type(C)'): Statement has no effect.
|
||||
|
||||
@@ -8,4 +8,4 @@ contract A {
|
||||
function f() public pure { L2.foo(); }
|
||||
}
|
||||
// ----
|
||||
// TypeError 7813: (43-48): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (43-48='new A'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
+2
-2
@@ -14,5 +14,5 @@ contract C {
|
||||
}
|
||||
|
||||
// ----
|
||||
// TypeError 7813: (48-53): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (161-166): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (48-53='new C'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (161-166='new D'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
@@ -8,4 +8,4 @@ contract A {
|
||||
function f() public pure { type(L2).creationCode; }
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (157-178): Statement has no effect.
|
||||
// Warning 6133: (157-178='type(L2).creationCode'): Statement has no effect.
|
||||
|
||||
@@ -6,4 +6,4 @@ library L2 {
|
||||
function foo() internal { type(L1).creationCode; }
|
||||
}
|
||||
// ----
|
||||
// TypeError 7813: (99-120): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
// TypeError 7813: (99-120='type(L1).creationCode'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
|
||||
|
||||
Reference in New Issue
Block a user