aboutsummaryrefslogtreecommitdiff
path: root/test/transpiler/decorator-export-default-class-fixture.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/transpiler/decorator-export-default-class-fixture.ts')
-rw-r--r--test/transpiler/decorator-export-default-class-fixture.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transpiler/decorator-export-default-class-fixture.ts b/test/transpiler/decorator-export-default-class-fixture.ts
new file mode 100644
index 000000000..901c17718
--- /dev/null
+++ b/test/transpiler/decorator-export-default-class-fixture.ts
@@ -0,0 +1,10 @@
+function decorator(target: any, propertyKey: any) {
+ target[propertyKey + "decorated"] = true;
+}
+
+export default class DecoratedClass {
+ @decorator
+ method() {
+ return 42;
+ }
+}