Skip to content

Issues: apple/swift

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

Author
Filter by author
Label
Filter by label
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Milestones
Filter by milestone
Assignee
Filter by who’s assigned
Sort

Issues list

Missing completion for bound variable in switch expression code completion Area → source tooling: code completion compiler The Swift compiler in itself expressions Feature: expressions source tooling Area: IDE support, SourceKit, and other source tooling swift 6.0 switch Feature → statements: 'switch' statements unexpected behavior Bug: Unexpected behavior or incorrect output
#71384 by hamishknight was closed Feb 9, 2024
Compiler crash on switch in branch of if expression assertion failure Bug → crash: An assertion failure compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software type checker Area → compiler: Semantic analysis
#71282 by hamishknight was closed Feb 1, 2024
Bogus diagnostic for explicit return in local function within closure bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis
#71273 by hamishknight was closed Jan 31, 2024
Wrong initializer called for stored property initialization bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. closures Feature: closures compiler The Swift compiler in itself duplicate Resolution: Duplicates another issue expressions Feature: expressions let & var Feature: constant and variable declarations mangling Area → compiler: Mangling swift 6.0 unexpected behavior Bug: Unexpected behavior or incorrect output
#70931 by hamishknight was closed Jan 17, 2024
Accessor macro on subscript crashes in SILGen assertion failure Bug → crash: An assertion failure bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software declarations Feature: declarations SILGen Area → compiler: The SIL generation stage subscript Feature: Subscript declarations swift macro Feature → declarations: Swift `macro` declarations swift 6.0
#70369 opened Dec 11, 2023 by hamishknight
Accessor macro on subscript cannot find instance members bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself name lookup Area → compiler → type checker: Name lookup swift macro Feature → declarations: Swift `macro` declarations
#70368 opened Dec 11, 2023 by hamishknight
Cannot use throwing function in autoclosure property wrapper initializer @autoclosure Feature → attributes: the @autoclosure type attribute bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself property wrappers Feature: property wrappers type checker Area → compiler: Semantic analysis
#70091 opened Nov 29, 2023 by hamishknight
Nested do-catch does not preserve rethrowing bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself control transfer statements Feature → statements: control transfer statements error handling statements Feature: statements swift 6.0 throw Feature → error handling: Throw statements type checker Area → compiler: Semantic analysis unexpected error Bug: Unexpected error
#68824 opened Sep 28, 2023 by hamishknight
DefiniteInitialization treats the destination of checked_cast_addr_br as a use rather than an initialization bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. definite initialization SIL SILOptimizer Area → compiler: SIL optimization passes
#68802 opened Sep 27, 2023 by hamishknight
Better detect if we're in a pattern before suggesting completions for let and var bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion expressions Feature: expressions let & var Feature: constant and variable declarations source tooling Area: IDE support, SourceKit, and other source tooling swift 5.9 unexpected behavior Bug: Unexpected behavior or incorrect output
#67705 opened Aug 3, 2023 by hamishknight
Avoid type-checking case bodies when doing solver-based completion for the pattern code completion Area → source tooling: code completion compiler The Swift compiler in itself performance
#67621 opened Jul 31, 2023 by hamishknight
Compiler crash attempting to type-check invalid pattern match of failure() bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software type checker Area → compiler: Semantic analysis
#66752 by hamishknight was closed Jun 20, 2023
Improve enum element pattern matching diagnostics when the arity of arguments mismatch bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. diagnostics QoI Bug: Diagnostics Quality of Implementation pattern matching Feature: pattern matching type checker Area → compiler: Semantic analysis
#66750 opened Jun 19, 2023 by hamishknight
Property wrapper on local variable cannot be used with its projected value in ExprPattern bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. patterns Feature: patterns type checker Area → compiler: Semantic analysis
#66561 by hamishknight was closed Jun 13, 2023
Invalid binding in ExprPattern crashes compiler bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software patterns Feature: patterns type checker Area → compiler: Semantic analysis
#66553 by hamishknight was closed Jun 16, 2023
Assigning to self in a Never initializer using a switch expression crashes the compiler assertion failure Bug → crash: An assertion failure bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software expressions Feature: expressions SILGen Area → compiler: The SIL generation stage swift 5.9 switch Feature → statements: 'switch' statements
#66490 by hamishknight was closed Jun 12, 2023
if/switch expressions aren't allowed with an optional chain assignment assignments Feature → expressions: assignments bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself expressions Feature: expressions if else Feature → statements: 'if' statements optional chaining Feature → expressions: optional chaining swift 5.9 type checker Area → compiler: Semantic analysis unexpected error Bug: Unexpected error
#65906 by hamishknight was closed May 15, 2023
Bad diagnostic for attempting to match non-tuple in array literal as tuple bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation for-in loops Feature: for-in loops pattern matching Feature: pattern matching patterns Feature: patterns statements Feature: statements swift 5.9 tuples Feature: tuples type checker Area → compiler: Semantic analysis
#65650 by hamishknight was closed May 4, 2023
Index reference to constructor on archetype should be dynamic bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. conformances Feature → protocol: protocol conformances generic constraints Feature → generics: generic constraints generics Feature: generic declarations and types indexing Area → source tooling: AST indexing protocol Feature → type declarations: Protocol declarations source tooling Area: IDE support, SourceKit, and other source tooling swift 5.9 unexpected behavior Bug: Unexpected behavior or incorrect output
#65614 opened May 3, 2023 by hamishknight
Improve diagnostic when attempting to use += to append a single element bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation expressions Feature: expressions improvement operators Feature: operators swift 5.9 type checker Area → compiler: Semantic analysis
#65609 opened May 3, 2023 by hamishknight
Bad diagnostic when attempting to use as? in a pattern bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. casting Feature: explicit casting (is, as, as? and as!) compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation pattern matching Feature: pattern matching patterns Feature: patterns swift 5.9
#65117 opened Apr 12, 2023 by hamishknight
Handle patterns for argument list related diagnostics bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. diagnostics QoI Bug: Diagnostics Quality of Implementation
#65062 opened Apr 11, 2023 by hamishknight
Bad diagnostic when pattern matching nil that cannot be inferred bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation expressions Feature: expressions operators Feature: operators swift 5.9 type checker Area → compiler: Semantic analysis type inference Feature: type inference
#64279 opened Mar 10, 2023 by hamishknight
Improve out-of-place binding diagnostic to reflect whether the binding was written as 'var' or 'let' bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation expressions Feature: expressions good first issue Good for newcomers pattern matching Feature: pattern matching swift 5.9 type checker Area → compiler: Semantic analysis
#63993 by hamishknight was closed Mar 19, 2023
Int-as-Bool diagnostic suggesting != 0 should ignore literals bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation good first issue Good for newcomers literals Feature → expressions: Literals such as an integer or string literal type checker Area → compiler: Semantic analysis
#63753 by hamishknight was closed Feb 21, 2023
ProTip! Mix and match filters to narrow down what you’re looking for.