mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Update tests for function type comparison
This commit is contained in:
		
							parent
							
								
									4407a13c17
								
							
						
					
					
						commit
						6b05bbbbb4
					
				| @ -571,6 +571,17 @@ BOOST_AUTO_TEST_CASE(comparison_of_function_types) | |||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	)"; | 	)"; | ||||||
|  | 	CHECK_ERROR(text, TypeError, "Operator < not compatible"); | ||||||
|  | 	text = R"( | ||||||
|  | 		contract C { | ||||||
|  | 			function f() returns (bool ret) { | ||||||
|  | 				return f == f; | ||||||
|  | 			} | ||||||
|  | 			function g() returns (bool ret) { | ||||||
|  | 				return f != f; | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	)"; | ||||||
| 	CHECK_SUCCESS(text); | 	CHECK_SUCCESS(text); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user