Skip to content

Commit

Permalink
rename "our leased" to "shleased" in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Apr 19, 2022
1 parent 515709d commit c2351d0
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dada_tests/specifier/our-leased-got-my-then-copy.dada

This file was deleted.

12 changes: 12 additions & 0 deletions dada_tests/specifier/shleased-got-my-then-copy.dada
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Point(our x, our y)

async fn main() {
# `p` is shleased here from a temporary; scope of the temporary is the block
p = Point(22, 33)

# ...and then we copy it to `q` (also shleased)
q = p

# ...and check if we can access `p`
print(p).await #! OUTPUT Point\(22, 33\)
}

0 comments on commit c2351d0

Please sign in to comment.