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
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
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
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
Duplicate bound variables not diagnosed in multi-statement closures accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. closures Feature: closures compiler The Swift compiler in itself multi-statement closures Feature → closures: multi-statement closures type checker Area → compiler: Semantic analysis
#63750 by hamishknight was closed Mar 1, 2023
Bad type conversion for switch-case where clause crashes compiler bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. closures Feature: closures compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software multi-statement closures Feature → closures: multi-statement closures switch Feature → statements: 'switch' statements type checker Area → compiler: Semantic analysis
#63746 by hamishknight was closed Feb 18, 2023
Move expression pattern solving into the constraint system bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling type checker Area → compiler: Semantic analysis
#63374 by hamishknight was closed Jun 7, 2023
Correctly adjust hasSingleExpressionBody when applying a result builder transform bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. type checker Area → compiler: Semantic analysis
#63264 by hamishknight was closed Feb 7, 2023
Bad diagnostic for nil literal with contextual type of _ 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 literals Feature → expressions: Literals such as an integer or string literal placeholder types Feature → types: placeholder types type checker Area → compiler: Semantic analysis
#63130 by hamishknight was closed Jan 24, 2023
Incorrect coverage for blocks following else ifs bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler in itself if else Feature → statements: 'if' statements source tooling Area: IDE support, SourceKit, and other source tooling statements Feature: statements swift 5.8 unexpected behavior Bug: Unexpected behavior or incorrect output
#62944 by hamishknight was closed Dec 4, 2023
Incorrect else if condition coverage bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler in itself if else Feature → statements: 'if' statements source tooling Area: IDE support, SourceKit, and other source tooling statements Feature: statements swift 5.8 unexpected behavior Bug: Unexpected behavior or incorrect output
#62943 by hamishknight was closed Dec 4, 2023
Void-returning @differentiable function crashes compiler AutoDiff 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 SILGen Area → compiler: The SIL generation stage swift 5.8 type checker Area → compiler: Semantic analysis
#62923 by hamishknight was closed Jan 18, 2023
Don't allow stripping of @noDerivative if @differentiable is not stripped AutoDiff bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
#62922 by hamishknight was closed Jul 6, 2023
Incorrect coverage counters following a catch block with a return bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler in itself do catch Feature → statements: 'do' statements source tooling Area: IDE support, SourceKit, and other source tooling statements Feature: statements swift 5.7 unexpected behavior Bug: Unexpected behavior or incorrect output
#61318 by hamishknight was closed Nov 28, 2023
Backing initializer for external property wrapper has incorrect linkage bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself linker error property wrappers Feature: property wrappers SIL
#61233 by hamishknight was closed Sep 28, 2022
Property wrapper parameter with projected value 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 type checker Area → compiler: Semantic analysis
#61223 by hamishknight was closed Sep 21, 2022
We emit duplicate coverage in a couple of cases bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler in itself
#61129 by hamishknight was closed Sep 15, 2022
ProTip! no:milestone will show everything without a milestone.