Don't include location in a message about binding function to a type

This commit is contained in:
wechman
2022-11-07 17:13:09 +01:00
committed by Kamil Śliwak
parent d5428af5bb
commit 4c9a58eb0f
3 changed files with 8 additions and 3 deletions
@@ -11,4 +11,4 @@ contract C {
}
// ----
// TypeError 3100: (112-114): The function "id" cannot be bound to the type "uint256" because the type cannot be implicitly converted to the first argument of the function ("uint16").
// TypeError 3100: (140-142): The function "id" cannot be bound to the type "struct S storage pointer" because the type cannot be implicitly converted to the first argument of the function ("uint16").
// TypeError 3100: (140-142): The function "id" cannot be bound to the type "struct S" because the type cannot be implicitly converted to the first argument of the function ("uint16").
@@ -0,0 +1,5 @@
struct S { uint8 x; }
function f() {}
using {f} for S;
// ----
// TypeError 4731: (45-46): The function "f" does not have any parameters, and therefore cannot be bound to the type "struct S".