mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function a(bool payable) public pure {}
 | |
|     function b(string payable) public pure {}
 | |
|     function c(int payable) public pure {}
 | |
|     function d(int256 payable) public pure {}
 | |
|     function e(uint payable) public pure {}
 | |
|     function f(uint256 payable) public pure {}
 | |
|     function g(byte payable) public pure {}
 | |
|     function h(bytes payable) public pure {}
 | |
|     function i(bytes32 payable) public pure {}
 | |
|     function j(fixed payable) public pure {}
 | |
|     function k(fixed80x80 payable) public pure {}
 | |
|     function l(ufixed payable) public pure {}
 | |
|     function m(ufixed80x80 payable) public pure {}
 | |
| }
 | |
| // ----
 | |
| // ParserError: (33-40): State mutability can only be specified for address types.
 | |
| // ParserError: (79-86): State mutability can only be specified for address types.
 | |
| // ParserError: (122-129): State mutability can only be specified for address types.
 | |
| // ParserError: (168-175): State mutability can only be specified for address types.
 | |
| // ParserError: (212-219): State mutability can only be specified for address types.
 | |
| // ParserError: (259-266): State mutability can only be specified for address types.
 | |
| // ParserError: (303-310): State mutability can only be specified for address types.
 | |
| // ParserError: (348-355): State mutability can only be specified for address types.
 | |
| // ParserError: (395-402): State mutability can only be specified for address types.
 | |
| // ParserError: (440-447): State mutability can only be specified for address types.
 | |
| // ParserError: (490-497): State mutability can only be specified for address types.
 | |
| // ParserError: (536-543): State mutability can only be specified for address types.
 | |
| // ParserError: (587-594): State mutability can only be specified for address types.
 |