godot/modules/gdscript/tests/scripts/analyzer/errors/for_loop_on_hard_iterator.gd

class Iterator:
	func _iter_init(_count):
		return true
	func _iter_next(_count):
		return false
	func _iter_get(_count) -> StringName:
		return &'custom'

func test():
	var hard_iterator := Iterator.new()

	for x in hard_iterator:
		if x is int:
			pass