Skip to content

Commit cd73f3e

Browse files
authored
Add regression test for #1645. (#1697)
This is already fixed (probably by #1687). Close #1645.
1 parent 8dd0e3b commit cd73f3e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/tall/regression/1600/1645.unit

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
>>>
2+
Future<String> fetchUserOrder() => Future.delayed(const Duration(seconds: 2), () => 'Large Latte');
3+
<<<
4+
Future<String> fetchUserOrder() =>
5+
Future.delayed(const Duration(seconds: 2), () => 'Large Latte');
6+
>>>
7+
Future<String> fetchUserOrder() =>
8+
// Imagine that this function is more complex and slow.
9+
Future.delayed(const Duration(seconds: 2), () => 'Large Latte');
10+
<<<
11+
Future<String> fetchUserOrder() =>
12+
// Imagine that this function is more complex and slow.
13+
Future.delayed(const Duration(seconds: 2), () => 'Large Latte');

0 commit comments

Comments
 (0)