Skip to content

Conversation

Adist319
Copy link
Contributor

Resolves #592.

This PR adds functionality to emit errors when abstract classes are called.

Changes

  • Added AbstractMethodCall error kind with comprehensive documentation
  • Enhanced function metadata to track abstract method status via is_abstract_method flag in FuncFlags
  • Implemented call validation in both Target::Function and Target::BoundMethod cases

Adist319 added 4 commits July 17, 2025 01:35
…stract methods. Updated the `AnswersSolver` to handle calls to abstract methods, raising an `AbstractMethodCall` error when such methods are invoked directly.
@meta-cla meta-cla bot added the cla signed label Jul 18, 2025
@Adist319
Copy link
Contributor Author

Will probably make a new branch, rebasing got a little messy.

* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
 * Copyright (c) Meta Platforms, Inc. and affiliates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the most part the change makes sense, not sure what happened here, lots of lines with no obvious change are highlighted.

Maybe a carriage return issue? Just a wild guess

At any rate, if you're making a new branch we should just keep an eye on this

@Adist319
Copy link
Contributor Author

New PR: #776, apologies for the delay.

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

Successfully merging this pull request may close these issues.

[feature] emit an error when trying to call an abstract method
4 participants