Ambiguous syntax interpreted as error in intellisense

(print or warn)(123)

Intellisense thinks this is an error. Intellisense should not be forcing syntax rules on me when I’m writing perfectly valid code.

EDIT: Also this isn’t detected as ambiguous syntax:

for i=1, 10 do
	(print or warn)(123)
end
2 Likes

In the situations I can see, it is an error:

Examples

No intellisense when there won’t actually be an error:


Intellisense when there will be an error:


How to fix if anyone reading this thread doesn’t know how:



For what code are you receiving an intellisense error that does not cause an actual error when you press play?

2 Likes