mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	GDScript: Fix error message for unfound type
This commit is contained in:
		
							parent
							
								
									253396ba39
								
							
						
					
					
						commit
						2a08739f30
					
				
					 3 changed files with 6 additions and 1 deletions
				
			
		|  | @ -731,7 +731,7 @@ GDScriptParser::DataType GDScriptAnalyzer::resolve_datatype(GDScriptParser::Type | |||
| 		} | ||||
| 	} | ||||
| 	if (!result.is_set()) { | ||||
| 		push_error(vformat(R"("%s" was not found in the current scope.)", first), p_type); | ||||
| 		push_error(vformat(R"(Could not find type "%s" in the current scope.)", first), p_type); | ||||
| 		return bad_type; | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
|  | @ -0,0 +1,3 @@ | |||
| func test(): | ||||
| 	var foo: Foo | ||||
| 	print('not ok') | ||||
|  | @ -0,0 +1,2 @@ | |||
| GDTEST_ANALYZER_ERROR | ||||
| Could not find type "Foo" in the current scope. | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dmitrii Maganov
						Dmitrii Maganov