Skip to content

Commit

Permalink
Update to the new style.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed May 6, 2024
1 parent 8bd6317 commit df97775
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions test/tall/regression/0900/0927.unit
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ class C {
int get currentAngleDigits => _currentSunAngleDeg < 0 ? 1 : _currentSunAngleDeg < 10 ? 2 : 3;
}
<<<
### TODO(1465): Should allow condition after the `=>`.
class C {
int get currentAngleDigits => _currentSunAngleDeg < 0
? 1
: _currentSunAngleDeg < 10
? 2
: 3;
int get currentAngleDigits =>
_currentSunAngleDeg < 0
? 1
: _currentSunAngleDeg < 10
? 2
: 3;
}
2 changes: 1 addition & 1 deletion test/tall/regression/0900/0966.stmt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ return [
else if (conditionB)
ItemConstructorB()
else
ItemConstructorC()
ItemConstructorC(),
];

0 comments on commit df97775

Please sign in to comment.