Merge pull request #14143 from ethereum/remove-type-categoryname

Remove the inaccurate `Type::categoryName()`
This commit is contained in:
Daniel
2023-04-23 22:05:35 +02:00
committed by GitHub
16 changed files with 13 additions and 57 deletions
@@ -4,4 +4,4 @@ contract C {
uint a = E.B(1000);
}
// ----
// TypeError 5704: (46-55): Enum is not callable.
// TypeError 5704: (46-55): This expression is not callable.
@@ -5,4 +5,4 @@ contract C
}
}
// ----
// TypeError 5704: (53-60): Rational number literal is not callable.
// TypeError 5704: (53-60): This expression is not callable.
@@ -2,4 +2,4 @@ contract C {
uint a = msg(1000);
}
// ----
// TypeError 5704: (26-35): Magic variable is not callable.
// TypeError 5704: (26-35): This expression is not callable.
@@ -3,4 +3,4 @@ contract C {
uint a = m(1000);
}
// ----
// TypeError 5704: (56-63): Mapping is not callable.
// TypeError 5704: (56-63): This expression is not callable.
@@ -4,4 +4,4 @@ contract C {
modifier m(uint) { _; }
}
// ----
// TypeError 5704: (26-33): Modifier is not callable.
// TypeError 5704: (26-33): This expression is not callable.
@@ -6,4 +6,4 @@ contract C {
uint a = A(1000);
}
// ----
// TypeError 5704: (B.sol:48-55): Module is not callable.
// TypeError 5704: (B.sol:48-55): This expression is not callable.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError 5704: (72-78): Contract is not callable.
// TypeError 5704: (72-78): This expression is not callable.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError 5704: (90-108): Rational number literal is not callable.
// TypeError 5704: (90-108): This expression is not callable.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError 5704: (153-157): Mapping is not callable.
// TypeError 5704: (153-157): This expression is not callable.
@@ -11,4 +11,4 @@ contract SomeContract {
}
// ----
// DeclarationError 2333: (106-145): Identifier already declared.
// TypeError 5704: (185-195): Integer is not callable.
// TypeError 5704: (185-195): This expression is not callable.
@@ -7,4 +7,4 @@ contract CrashContract {
}
}
// ----
// TypeError 5704: (170-177): Rational number literal is not callable.
// TypeError 5704: (170-177): This expression is not callable.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError 5704: (59-63): Rational number literal is not callable.
// TypeError 5704: (59-63): This expression is not callable.