Age | Commit message (Collapse) | Author |
|
(cherry picked from commit 66279b98b6c3418232003cc8d6c2e52af7a62ac4)
|
|
(cherry picked from commit c0eeb32e38fbd4f582f7a2726e6535614e507205)
|
|
(cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1)
|
|
Since they may have runtime type validation, we cannot use the validated
call.
|
|
|
|
|
|
GDScript: Fix error message for unfound type
|
|
Added check for null objects in gdscript typed assign.
|
|
|
|
|
|
Avoid treating the super class as a meta type for signature check, since
it is looking at the instance level for that.
|
|
Make global scope enums accessible as types in GDScript
|
|
GDScript: Rework type check
|
|
Add functions to CoreConstant so enums can be properly deduced. Also add
the enums in release builds to make consistent with ClassDB enums and
avoid differences in script compilation between debug and release.
|
|
|
|
Co-authored-by: Dmitry Maganov <vonagam@gmail.com>
|
|
GDScript: Fix error about enum typed arrays
|
|
Fix unset getter return types resulting in strange behavior
|
|
|
|
|
|
|
|
|
|
This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88.
This introduced some other issues, as discussed in #72144.
|
|
|
|
GDScript: Fix can_reference check for typed arrays
|
|
GDScript: Fix `await` type inference
|
|
GDScript: Fix inheritance check of @onready for inner classes
|
|
|
|
|
|
|
|
|
|
GDScript: Fix type certainty for result of ternary operator
|
|
|
|
GDScript: Add warnings that are set to error by default (take 2)
|
|
- Adds a list of default levels for all warning so they can be set
individually.
- Add warnings set by default to error for:
- Using `get_node()` without `@onready`.
- Using `@onready` together with `@export`.
- Inferring a static type with a Variant value.
- Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
the direct super class of the script. This ensures they are always
equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
default argument as having a default. Now it shows for all.
|
|
- Consider PackedArrays non-shared since they are copied on C++/script
boundaries.
- Add error messages in the analyzer when assigning to read-only
properties.
- Add specific error message at runtime when assignment fails because
the property is read-only.
|
|
|
|
This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396.
This caused multiple regressions.
Needs to be redone with more testing before merge.
Fixes #72501.
|
|
- Adds a list of default levels for all warning so they can be set
individually.
- Add warnings set by default to error for:
- Using `get_node()` without `@onready`.
- Using `@onready` together with `@export`.
- Inferring a static type with a Variant value.
- Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
the direct super class of the script. This ensures they are always
equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
default argument as having a default. Now it shows for all.
|
|
|
|
|
|
|
|
GDScript: Allow variables in match patterns
|
|
GDScript: Fix constant conversions
|
|
To restore an ability available in 3.x and reduce compatibility changes.
|
|
|
|
|
|
|
|
GDScript: Fix wrong marking of some lines related to Variant as unsafe
|
|
|