mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #721 from LefterisJP/sol_fixMultiLCommentScan
Fix for sol scanner where empty multiline comment became Natspec comment
This commit is contained in:
		
						commit
						e50d4095a7
					
				| @ -227,6 +227,13 @@ BOOST_AUTO_TEST_CASE(documentation_comment_before_eos) | ||||
| 	BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), ""); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(empty_multiline_comment) | ||||
| { | ||||
| 	Scanner scanner(CharStream("/**/")); | ||||
| 	BOOST_CHECK_EQUAL(scanner.getCurrentToken(), Token::EOS); | ||||
| 	BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), ""); | ||||
| } | ||||
| 
 | ||||
| BOOST_AUTO_TEST_CASE(empty_multiline_documentation_comment_before_eos) | ||||
| { | ||||
| 	Scanner scanner(CharStream("/***/")); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user