Skip to content

[bug] Classes with fields of a Class type do not work #170

@mrodz

Description

@mrodz

Documentation Status

Snippet Responsible

class B {}
class A {
    inner: B

    fn set(self) {
        self.inner = B()
    }
}

Stack Trace of Error

<N/A>

Expected Behavior

Set inner to B()

Any ideas where MScript breaks?

  • Bytecode Interpreter
  • Compiler
  • Optimizer
  • Not Sure (It's okay!)
  • Other: please explain

Brain Dump (Optional)

  • ClassSelf is not being handled correctly
  • AST class does not handle dependencies correctly.
    • Not handling them at all
    • Duplicate names in make_function instruction

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions