mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add failing test
This commit is contained in:
14
inputs/failing/thisUsageInMethodShorthand.ts
Normal file
14
inputs/failing/thisUsageInMethodShorthand.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export default function main() {
|
||||
let stuff = {
|
||||
foo() {
|
||||
this.bar = "baz";
|
||||
return this.bar;
|
||||
},
|
||||
bar: "bar",
|
||||
};
|
||||
|
||||
return [
|
||||
stuff.foo(),
|
||||
stuff.bar,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user