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

Missing any not diagnosed in borrowing ~(Copyable & Copyable) #78936

Open
AnthonyLatsis opened this issue Jan 27, 2025 · 0 comments
Open

Missing any not diagnosed in borrowing ~(Copyable & Copyable) #78936

AnthonyLatsis opened this issue Jan 27, 2025 · 0 comments
Assignees
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself existentials Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values Swift 6.2-dev type checker Area → compiler: Semantic analysis types Feature: types

Comments

@AnthonyLatsis
Copy link
Collaborator

Description

No response

Reproduction

func foo1(_: borrowing ~(Copyable & Copyable)) {}

Expected behavior

Error.

Environment

Swift version 6.2-dev (95dca81)

Additional information

No response

@AnthonyLatsis AnthonyLatsis added accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself existentials Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values Swift 6.2-dev type checker Area → compiler: Semantic analysis types Feature: types labels Jan 27, 2025
@AnthonyLatsis AnthonyLatsis self-assigned this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself existentials Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values Swift 6.2-dev type checker Area → compiler: Semantic analysis types Feature: types
Projects
None yet
Development

No branches or pull requests

1 participant