mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Don't include location in a message about binding function to a type
This commit is contained in:
@@ -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".
|
||||
Reference in New Issue
Block a user