Skip to content

Language: Intersection types (A&B) in parameters and properties #1357

Description

@PurHur

Summary

Type hints like function f(A&B $x) and property types; runtime checks where enforced.

Context

  • Roadmap: #78, North Star 2 #1056
  • Syntax matrix: docs/capabilities-syntax.md · Lint gaps: docs/unsupported-syntax.md

Acceptance criteria

  • Parser + CFG lowering (php-cfg / Compiler)
  • VM semantics + compliance or unit tests
  • LLVM JIT lowering (or documented deferral in SelfHostBuiltinPolicy)
  • AOT/self-host probe if on vm.php / compile.php path
  • Row in docs/capabilities-syntax.md (regenerate via script/capability-syntax.php)

Related

See open language backlog #1238.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions