-
-
Notifications
You must be signed in to change notification settings - Fork 385
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
version 3.4.2
Describe the bug
I believe this is a general issue, but I'll describe it as it pertains to assert, since that is a concrete example.
To Reproduce
local value
assert(value, "assertion failed")This yields a diagnostic warning:
Cannot assign
unknownto parameter<T>?
Expected behavior
This seems unexpected to me, since a generic type param (<T>) should theoretically accept any type, especially since the parameter is optional. Is it a bug or expected behavior?
I'd prefer not to disable this diagnostic, because it is helpful in other cases where there is a real type mismatch.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

