summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/warnings/confusable_identifier.gd
blob: 41b38c4bba9be0d6eb180b24c83c75fdf598c0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extends Node

func test():
	var port = 0 # Only latin characters.
	var pοrt = 1 # The "ο" is Greek omicron.

	prints(port, pοrt)

# Do not call this since nodes aren't in the tree. It is just a parser check.
func nodes():
	var _node1 = $port # Only latin characters.
	var _node2 = $pοrt # The "ο" is Greek omicron.