Skip to content

Swift: prototype implementation of type inference in QL#21837

Draft
hvitved wants to merge 17 commits into
github:mainfrom
hvitved:swift/type-inference-proto
Draft

Swift: prototype implementation of type inference in QL#21837
hvitved wants to merge 17 commits into
github:mainfrom
hvitved:swift/type-inference-proto

Conversation

@hvitved
Copy link
Copy Markdown
Contributor

@hvitved hvitved commented May 12, 2026

No description provided.

@github-actions github-actions Bot added Rust Pull requests that update Rust code Swift labels May 12, 2026
Comment on lines +2148 to +2152
*/
class LetDeclaration extends AstNode {
/**
* Holds if this declaration is a coercion site, meaning that the type of the right
* operand may have to be coerced to the type of the left operand.

override Location getLocation() { result = associatedType.getLocation() }

override TypeParameter getPositionalTypeParameter(int i) {
private import TypeMention
private import TypeInference
private import TypeInference::Consistency as Consistency
import TypeInference::Consistency
@hvitved hvitved force-pushed the swift/type-inference-proto branch from 252b1bf to 2e11a89 Compare May 12, 2026 12:20
exists(Declaration target, DeclarationPosition dpos |
target = a.getTarget(e) and
exists(
DeclarationPosition dpos, TypeMention condition, TypeMention constraint,
private import Type
private import TypeAbstraction
private import TypeAbstraction as TA
private import Type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants