Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

[NF] Improve operator overloading. #2837

Closed
wants to merge 1 commit into from
Closed

Conversation

perost
Copy link
Member

@perost perost commented Dec 14, 2018

  • Implement scalar*array, array*scalar and array/scalar for overloaded
    operators.
  • Improve TypeCheck.implicitConstructAndMatch so that it checks that the
    constructed argument actually matches the expected type for the
    operator, to avoid it matching e.g. scalars with operators that only
    take arrays.

- Implement scalar*array, array*scalar and array/scalar for overloaded
  operators.
- Improve TypeCheck.implicitConstructAndMatch so that it checks that the
  constructed argument actually matches the expected type for the
  operator, to avoid it matching e.g. scalars with operators that only
  take arrays.
@OpenModelica-Hudson
Copy link
Member

The tests run correctly according to OpenModelica_TEST_PULL_REQUEST 2018-12-14_18-45-18.

OpenModelica-Hudson pushed a commit that referenced this pull request Dec 14, 2018
- Implement scalar*array, array*scalar and array/scalar for overloaded
  operators.
- Improve TypeCheck.implicitConstructAndMatch so that it checks that the
  constructed argument actually matches the expected type for the
  operator, to avoid it matching e.g. scalars with operators that only
  take arrays.

Belonging to [master]:
  - #2837
  - OpenModelica/OpenModelica-testsuite#1095
OpenModelica-Hudson pushed a commit to OpenModelica/OpenModelica-testsuite that referenced this pull request Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants