From 9db8e4af701b00a81fdfb0d1b6cbe23492ae097d Mon Sep 17 00:00:00 2001 From: Sonny Vesali <79886185+sonnyvesali@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:39:30 -0600 Subject: [PATCH] fix: ifStatement scope --- data/fixtures/scopes/dart/ifStatement.scope | 2 ++ data/playground/dart.dart | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/data/fixtures/scopes/dart/ifStatement.scope b/data/fixtures/scopes/dart/ifStatement.scope index 771c9e7567..679842a5c8 100644 --- a/data/fixtures/scopes/dart/ifStatement.scope +++ b/data/fixtures/scopes/dart/ifStatement.scope @@ -1,3 +1,5 @@ +foo() { if(true) { } +} --- diff --git a/data/playground/dart.dart b/data/playground/dart.dart index b55e5f6d46..94f41c2f84 100644 --- a/data/playground/dart.dart +++ b/data/playground/dart.dart @@ -1,7 +1,3 @@ -void main() { - hi() { - if (true) { - return true; - } - } +void foo() { + if (true) {} }