Skip to content

Commit

Permalink
Test equality of optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Aug 22, 2024
1 parent 5c61e65 commit fb2f60c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/LibraryTests/TestCases/OptionalTests.hylo
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ public fun main() {
precondition(None<Int>() == None<Int>())

var x = 42 as Optional<Int>
precondition(x == x)

let y = if let i: Int = x { i.copy() } else { 0 }
precondition(y == 42)

Expand Down

0 comments on commit fb2f60c

Please sign in to comment.