You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR TS2304: Cannot find name 'Method1'.
static attach<T>(mth: Method1, data: T):void {
~~~~~~~
in name.ts(29,24)
ERROR: Compile error
at exports.main (https://assemblyscript.github.io/assemblyscript/dist/asc.js:1:457291)
at Object.eval [as main] (eval at d (https://webassembly.studio/dist/main.bundle.js:1:32473), <anonymous>:20:12)
at r.eval [as promiseMaker] (eval at gulp (https://webassembly.studio/dist/main.bundle.js:1:34093), <anonymous>:7:7)
at o.makePromise (https://webassembly.studio/dist/main.bundle.js:1:31658)
at s.runInstance (https://webassembly.studio/dist/main.bundle.js:1:31954)
[info]: Task build is completed
Saving Project ...
Saved Project OK
The below code compiled successful.
var mth: Method = getMethod("name");
Action.attach(mth, "");
I expected the below code also compiled successful.
var mth1 = getMethod1("name");
Action1.attach(mth1, "");
The text was updated successfully, but these errors were encountered:
Closing this issue as part of 2020 vacuum because it appears to have been solved meanwhile. The latest failing example did work in a quick test. If there are any remaining issues, feel free to open a new issue or re-open this one.
The source code.
The compiled result:
The below code compiled successful.
I expected the below code also compiled successful.
The text was updated successfully, but these errors were encountered: