From b7cafe974a5940d96325adc7615aeed2658bf2ac Mon Sep 17 00:00:00 2001 From: Supun Setunga Date: Wed, 15 May 2024 08:09:20 -0700 Subject: [PATCH] Fix merge --- runtime/tests/checker/resources_test.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/runtime/tests/checker/resources_test.go b/runtime/tests/checker/resources_test.go index 77c7f12c23..b548475ab7 100644 --- a/runtime/tests/checker/resources_test.go +++ b/runtime/tests/checker/resources_test.go @@ -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()