Skip to content

docs: count only the postfix levels in the type rule - #39

Merged
xperiandri merged 1 commit into
mainfrom
docs/test-data-instructions
Oct 18, 2026
Merged

xperiandri merged 1 commit into
mainfrom
docs/test-data-instructions

Conversation

@xperiandri

Copy link
Copy Markdown
Collaborator

Proposed Changes

Narrows the type rule of .github/copilot-instructions.md to what it was meant to say. The rule limits the levels of a type that use the postfix ML style. An array in angle brackets or in a tuple adds no postfix level, so seq<int array> and struct (int array * int array) comply; only stacked postfix levels such as int array seq do not.

Two agents read the earlier wording ("An array inside another type is 'T[]") differently and rewrote correct types.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Documentation only.

Checklist

  • Build and tests pass locally
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

🤖 Generated with Claude Code

The rule limits the levels of a type that use the postfix ML style. An array in angle brackets or in a tuple adds no
postfix level, so `seq<int array>` and `struct (int array * int array)` comply; only stacked postfix levels such as
`int array seq` do not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 18, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The documentation-only clarification matches the stated intent and has no identified issues.

No open issues 🎉

What changed in this PR

Clarifies the F# type-style guidance to prevent unnecessary rewrites of valid types.

Changes:

  • Limits the rule to nested postfix ML-style levels.
  • Adds compliant array examples inside generic types and tuples.
File Description
.github/​copilot-instructions.md Clarifies postfix-level counting and valid examples.

Review effort: Balanced

@xperiandri
xperiandri merged commit fde70b6 into main Oct 18, 2026
8 checks passed
@xperiandri
xperiandri deleted the docs/test-data-instructions branch October 18, 2026 18:41
xperiandri added a commit that referenced this pull request Nov 14, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri added a commit that referenced this pull request Nov 18, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants