modules/gdscript/tests/scripts/parser/warnings/confusable_identifier.gd
raw| 1 | extends Node |
| 2 | |
| 3 | func test(): |
| 4 | var port = 0 # Only latin characters. |
| 5 | var pοrt = 1 # The "ο" is Greek omicron. |
| 6 | |
| 7 | prints(port, pοrt) |
| 8 | |
| 9 | # Do not call this since nodes aren't in the tree. It is just a parser check. |
| 10 | func nodes(): |
| 11 | var _node1 = $port # Only latin characters. |
| 12 | var _node2 = $pοrt # The "ο" is Greek omicron. |