`@this {ol.source.WMTS}` at line 97 should also be deleted (it was preventing the compiler from detecting the erroneous use of `this`.