mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05: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());
|