1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00
Files
godot/modules
ocean (they/them) 25c90836fd GDScript: do not warn of return value discarded for super() inside _init()
DO NOT BATCH MERGE WITH #77324, WILL RESULT IN BROKEN CI

Currently, calling super() inside _init() throws a
RETURN_VALUE_DISCARDED warning. The analyzer identifies super() as being a
constructor, which therefore returns an object of the relevant class.
However, super() isn't really a constructor by itself: in this case, it
is _part_ of the constructor, and so doesn't "return" a value.

A test case for this is already in #77324, which contains the warning. I
am duplicating it here, without the warning, and it should conflict with
the other PR.
2023-05-22 09:29:34 -04:00
..
2023-05-11 14:32:47 +02:00
2023-04-12 19:27:23 -04:00
2023-05-10 05:01:58 +02:00
2023-03-01 01:44:37 +01:00
2023-03-01 01:44:37 +01:00
2023-04-27 20:28:22 +02:00
2023-03-01 01:44:37 +01:00
2023-04-18 10:20:48 +03:00
2023-03-01 01:44:37 +01:00
2023-03-01 01:44:37 +01:00
2023-01-25 10:38:03 -03:00
2023-03-01 01:44:37 +01:00