Do not use the whole Form to describe a ReferenceLine.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 8 Mar 2020 22:27:34 +0000 (18:27 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 8 Mar 2020 22:27:34 +0000 (18:27 -0400)
src/Line.ts

index f85c359063845f24edac73872e3bdfb553fffbca..50308089d05cad86711f0fbe67a886bdf5874493 100644 (file)
@@ -49,7 +49,7 @@ export class ReferenceLine<F extends Form<any>,
   // the one the Line is in, erase |form|'s type with |as any| to
   // keep TypeScript happy.
   constructor(form: FormClass<F>, line: L, description?: string, fallback?: T) {
-    super(description || `Reference F${form}.L${line}`);
+    super(description || `Reference F${form.name}.L${line}`);
     this._form = form;
     this._line = line;
     this._fallback = fallback;