Closed
Description
Starting with the following code:
abstract class C {
List<String> get myList;
String get _first => myList.first;
test() => _first.isNotEmpty;
}
Active the "inline method" refactoring on the method _first
.
Expected result:
abstract class C {
List<String> get myList;
test() => myList.first.isNotEmpty;
}
Observed result:
abstract class C {
List<String> get myList;
test() => _first.myList.first; // Undefined name '_first'
}