Skip to content

Can't call method on newly created instance #251

@andy-hanson

Description

@andy-hanson
import "allocator/tlsf";

class C {
  m(): i32 {
    return 0;
  }
}

export function test(): i32 {
  return new C().m();
}

Expected: No error.
Actual: ERROR AS100: Operation not supported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions