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

Implement optional patterns #1569

Merged
merged 3 commits into from
Aug 23, 2024
Merged

Implement optional patterns #1569

merged 3 commits into from
Aug 23, 2024

Conversation

kyouko-taiga
Copy link
Contributor

Now we can write the following:

public fun main() {
  let x: Optional<Int> = 42 as _
  if let y? = x { print(y) }
}

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 98.27586% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.88%. Comparing base (dff9eca) to head (a962208).
Report is 5 commits behind head on main.

Files Patch % Lines
Sources/FrontEnd/TypeChecking/TypeChecker.swift 97.05% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1569      +/-   ##
==========================================
+ Coverage   87.83%   87.88%   +0.04%     
==========================================
  Files         373      374       +1     
  Lines       22627    22665      +38     
==========================================
+ Hits        19875    19919      +44     
+ Misses       2752     2746       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyouko-taiga kyouko-taiga merged commit 02a4f3c into main Aug 23, 2024
16 checks passed
@kyouko-taiga kyouko-taiga deleted the option-pattern branch August 23, 2024 22:36
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.

1 participant