mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Cover both failure cases
This commit is contained in:
		
							parent
							
								
									bab7f8f455
								
							
						
					
					
						commit
						ee147e14d3
					
				| @ -4746,7 +4746,19 @@ BOOST_AUTO_TEST_CASE(internal_function_type_to_address) | ||||
| 			} | ||||
| 		} | ||||
| 	)"; | ||||
| 	CHECK_ERROR(text, TypeError, ""); | ||||
| 	CHECK_ERROR(text, TypeError, "Explicit type conversion not allowed"); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(external_function_type_to_uint) | ||||
| { | ||||
| 	char const* text = R"( | ||||
| 		contract C { | ||||
| 			function f() returns (uint) { | ||||
| 				return uint(this.f); | ||||
| 			} | ||||
| 		} | ||||
| 	)"; | ||||
| 	CHECK_ERROR(text, TypeError, "Explicit type conversion not allowed"); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(invalid_fixed_point_literal) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user