mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 05:39:29 +01:00 
			
		
		
		
	* overloaded forward problem
This commit is contained in:
		
							parent
							
								
									a2c432a153
								
							
						
					
					
						commit
						a500f24e92
					
				
							
								
								
									
										18
									
								
								bugs/bug0253.pp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								bugs/bug0253.pp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					procedure test(w : word);forward;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					procedure test(a : string);
 | 
				
			||||||
 | 
					begin
 | 
				
			||||||
 | 
					   Writeln(a);
 | 
				
			||||||
 | 
					   test(20);
 | 
				
			||||||
 | 
					end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					procedure test(w :word);
 | 
				
			||||||
 | 
					begin
 | 
				
			||||||
 | 
					   writeln(w);
 | 
				
			||||||
 | 
					end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					begin
 | 
				
			||||||
 | 
					  test('test');
 | 
				
			||||||
 | 
					  test(32);
 | 
				
			||||||
 | 
					end.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -305,6 +305,7 @@ Fixed bugs:
 | 
				
			|||||||
               allowed in -Sd mode OK 0.99.11 (PM)
 | 
					               allowed in -Sd mode OK 0.99.11 (PM)
 | 
				
			||||||
  bug0248.pp   Asm, Wrong assembler code accepted by new assembler reader OK 0.99.11 (PFV)
 | 
					  bug0248.pp   Asm, Wrong assembler code accepted by new assembler reader OK 0.99.11 (PFV)
 | 
				
			||||||
  bug0250.pp   error with Ansistrings and loops.                    OK 0.99.11 (PFV)
 | 
					  bug0250.pp   error with Ansistrings and loops.                    OK 0.99.11 (PFV)
 | 
				
			||||||
 | 
					  bug0251.pp   typed const are not aligned correctly                OK 0.99.11 (PM)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Unproducable bugs:
 | 
					Unproducable bugs:
 | 
				
			||||||
@ -342,5 +343,5 @@ bug0244.pp   nested procedures can't have same name as global ones
 | 
				
			|||||||
bug0245.pp   assigning pointers to address of consts is allowed (refused by BP !)
 | 
					bug0245.pp   assigning pointers to address of consts is allowed (refused by BP !)
 | 
				
			||||||
bug0246.pp   const para can be changed without error
 | 
					bug0246.pp   const para can be changed without error
 | 
				
			||||||
bug0249.pp   procedure of object cannot be assigned to property.
 | 
					bug0249.pp   procedure of object cannot be assigned to property.
 | 
				
			||||||
bug0251.pp   typed const are not aligned correctly
 | 
					 | 
				
			||||||
bug0252.pp   typecasting not possible within typed const
 | 
					bug0252.pp   typecasting not possible within typed const
 | 
				
			||||||
 | 
					bug0253.pp   problem with overloaded procedures and forward
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user