Skip to content

[Bug] New instantiation expressions are unchecked #719

Description

@Luna-Klatzer

Is there an existing issue for this?

  • I have searched the existing issues

I am following the documentation's guide

  • I have read the documentation

This issue exists in the latest version

  • I am using the latest version

Current Behavior

Calling new of a class does not check the provided arguments against the constructor parameter types. This is a major oversight and should be immediately fixed.

Expected Behavior

  • new ...(arg1, arg2, ...) should be type-checked against the existing constructor definition in the class.

Steps To Reproduce

  1. Create a class with any number of constructor parameters.
  2. Instantiate the class with any wrong argument type or incorrect argument count.
  3. View error not happening.

Environment

  • Kipper: 0.12.1
  • Environment: All
  • Operating System: All

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugBug or issue in the language or APIhigh priorityHigh priority issue, discussion or pull request

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions