Skip to content

Commit

Permalink
#2404. Small code-style improvements and description update (#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov authored Dec 6, 2023
1 parent 725d848 commit 0433c49
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Language/Libraries_and_Scripts/Imports/semantics_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
/// setter named id= with the same signature as s. Calling the setter results
/// in a dynamic error that occurs before the actual argument is evaluated.
///
/// @description Checks that calling a function from a deferred library before
/// `loadLibrary()` call results in a dynamic error that occurs before any
/// actual arguments are evaluated.
/// @description Checks that calling a function or setter from a deferred
/// library before `loadLibrary()` call results in a dynamic error that occurs
/// before any actual arguments are evaluated.
/// @author [email protected]
import "../../../Utils/expect.dart";
Expand All @@ -33,9 +33,11 @@ String log = "";

class C {
int value;
C(this.value);
C(this.value) {
log += "C($value)";
}
int operator +(int other) {
log = "C($value).+($other)";
log += ".+($other)";
return value + other;
}
}
Expand Down

0 comments on commit 0433c49

Please sign in to comment.