Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed May 15, 2024
1 parent 6e3c6ee commit b7cafe9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions runtime/tests/checker/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9462,26 +9462,6 @@ func TestCheckInvalidResourceDestructionInFunction(t *testing.T) {
assert.IsType(t, &sema.ResourceCapturingError{}, errs[0])
}

func TestCheckInvalidResourceCaptureOnLeft(t *testing.T) {

t.Parallel()

_, err := ParseAndCheck(t, `
fun test() {
var x: @AnyResource? <- nil
fun () {
x <-! []
}
destroy x
}
`)
errs := RequireCheckerErrors(t, err, 1)

assert.IsType(t, &sema.ResourceCapturingError{}, errs[0])
}

func TestCheckInvalidNestedResourceCaptureOnLeft(t *testing.T) {

t.Parallel()
Expand Down

0 comments on commit b7cafe9

Please sign in to comment.