Skip to content

fix - #1062

Merged
CppCXY merged 4 commits into
EmmyLuaLs:mainfrom
xuhuanzy:fix
May 12, 2026
Merged

fix#1062
CppCXY merged 4 commits into
EmmyLuaLs:mainfrom
xuhuanzy:fix

Conversation

@xuhuanzy

@xuhuanzy xuhuanzy commented May 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances generic type handling within the code analysis engine, specifically addressing type mismatch diagnostics and generic argument completion for 'self' references. Key changes include updating assignment checks to support generic types, refining nominal check retries for aliases, and adding comprehensive tests for generic table extensions and 'self' returns. Feedback suggests that moving generic argument completion to the inference stage would improve efficiency and consistency across the semantic model.

assert!(ws.has_no_diagnostic(
DiagnosticCode::ReturnTypeMismatch,
r#"
--- @class MockContext<T = string>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the = string mean here? I thought it was : string.

@xuhuanzy xuhuanzy changed the title fix generic fix May 11, 2026
@xuhuanzy

Copy link
Copy Markdown
Member Author

@CppCXY 需要合并, 在此基础上重构泛型推断引擎

@CppCXY
CppCXY merged commit 2d8aed3 into EmmyLuaLs:main May 12, 2026
16 checks passed
@xuhuanzy
xuhuanzy deleted the fix branch July 6, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants