Skip to content

Commit

Permalink
Use '.none()' in 'Optional''s tests
Browse files Browse the repository at this point in the history
kyouko-taiga committed Dec 27, 2023
1 parent 5d20e69 commit 126775a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/LibraryTests/TestCases/OptionalTests.hylo
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ public fun main() {
let y = if let i: Int = x { i.copy() } else { 0 }
precondition(y == 42)

&x = None()
&x = .none()
let z = if let i: Int = x { i.copy() } else { 0 }
precondition(z == 0)
}

0 comments on commit 126775a

Please sign in to comment.