Skip to content

Commit

Permalink
Fraction.numerator and Fraction.denominator should be of type `in…
Browse files Browse the repository at this point in the history
…t`, not `num`.
  • Loading branch information
renggli committed Jul 14, 2024
1 parent ffa079f commit 2a32260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/number/fraction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ class Fraction
final int a;

/// Alternative way to access the numerator of the fraction.
num get numerator => a;
int get numerator => a;

/// Returns the denominator of the fraction.
final int b;

/// Alternative way to access the denominator of the fraction.
num get denominator => b;
int get denominator => b;

/// Returns the negation of this fraction.
Fraction operator -() => Fraction._(-a, b);
Expand Down

0 comments on commit 2a32260

Please sign in to comment.