Refactor extend statement: remove unnecessary "as" keyword and push "this" variable context to the extend-statement scope
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
extend note as this {
|
||||
extend note {
|
||||
function withOctave(octave: int) {
|
||||
return Note(this.pitch, octave, this.duration.get("numerator"), this.duration.get("denominator"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user