Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser bug (please report): Trying to check compatibility of unset value type #84571

Open
dinshin0129 opened this issue Nov 7, 2023 · 1 comment

Comments

@dinshin0129
Copy link

Godot version

v4.1.2.stable.mono.official [399c9dc]

System information

Godot v4.1.2.stable.mono - Windows 10.0.22635 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.3742) - Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz (16 Threads)

Issue description

The editor has prompted that Parser bug (please report): Trying to check compatibility of unset value type when i write:
var componet = func componet() -> Componet:
return Componet.new()

and as long as it's written just.

Steps to reproduce

// Componet.qd
extends Resource
class_name Componet

var value:String

//ccc.gd
extends Node
class_name ccc

const value:StringName = "ccc"

var componet = func componet() -> Componet:
return Componet.new()

Minimal reproduction project

project.zip

@dalexeev
Copy link
Member

dalexeev commented Nov 7, 2023

Please test this in 4.2 beta 4, it should be fixed by #83257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants