mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
960f9ccb2e
This commit changes how error occurring in SWC are handled. Changed lexer settings to properly handle TS decorators. Changed output of SWC error to annotate with position in file.
14 lines
248 B
TypeScript
14 lines
248 B
TypeScript
/* eslint-disable */
|
|
|
|
function Decorate() {
|
|
return function (constructor: any): any {
|
|
return class extends constructor {
|
|
protected someField: string = "asdf";
|
|
};
|
|
};
|
|
}
|
|
|
|
@Decorate()
|
|
class SomeClass {}
|
|
|
|
console.log(new SomeClass());
|